mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 14:13:02 -04:00
improvements
This commit is contained in:
parent
f3cb7dea56
commit
561cecdfdc
3 changed files with 0 additions and 5 deletions
|
@ -135,7 +135,6 @@ module.exports = {
|
||||||
|
|
||||||
let res;
|
let res;
|
||||||
try{
|
try{
|
||||||
console.log(toCodePoint(emoji[0]))
|
|
||||||
res = await emojipedia(context, emoji[0], toCodePoint(emoji[0]))
|
res = await emojipedia(context, emoji[0], toCodePoint(emoji[0]))
|
||||||
res = res.response.body
|
res = res.response.body
|
||||||
}catch(e){
|
}catch(e){
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -11,7 +11,6 @@ const { Components, Snowflake } = require("detritus-client/lib/utils");
|
||||||
const { bold } = require("detritus-client/lib/utils/markup");
|
const { bold } = require("detritus-client/lib/utils/markup");
|
||||||
|
|
||||||
const onlyEmoji = require('emoji-aware').onlyEmoji;
|
const onlyEmoji = require('emoji-aware').onlyEmoji;
|
||||||
const ecache = require('./emoji.json')
|
|
||||||
|
|
||||||
function toCodePoint(unicodeSurrogates, sep) {
|
function toCodePoint(unicodeSurrogates, sep) {
|
||||||
var
|
var
|
||||||
|
@ -112,7 +111,6 @@ module.exports = {
|
||||||
|
|
||||||
components.clear();
|
components.clear();
|
||||||
if(newView.data.metadata.similar) for(const e of newView.data.metadata.similar.splice(0, 5)){
|
if(newView.data.metadata.similar) for(const e of newView.data.metadata.similar.splice(0, 5)){
|
||||||
if(!ecache.includes(e)) continue;
|
|
||||||
components.addButton({
|
components.addButton({
|
||||||
customId: e,
|
customId: e,
|
||||||
emoji: e,
|
emoji: e,
|
||||||
|
@ -127,7 +125,6 @@ module.exports = {
|
||||||
})
|
})
|
||||||
|
|
||||||
if(res.data.metadata.similar) for(const e of res.data.metadata.similar.splice(0, 5)){
|
if(res.data.metadata.similar) for(const e of res.data.metadata.similar.splice(0, 5)){
|
||||||
if(!ecache.includes(e)) continue;
|
|
||||||
components.addButton({
|
components.addButton({
|
||||||
customId: e,
|
customId: e,
|
||||||
emoji: e,
|
emoji: e,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue