improvements

This commit is contained in:
bignutty 2024-05-31 16:05:46 +02:00
parent f3cb7dea56
commit 561cecdfdc
3 changed files with 0 additions and 5 deletions

View file

@ -135,7 +135,6 @@ module.exports = {
let res;
try{
console.log(toCodePoint(emoji[0]))
res = await emojipedia(context, emoji[0], toCodePoint(emoji[0]))
res = res.response.body
}catch(e){

File diff suppressed because one or more lines are too long

View file

@ -11,7 +11,6 @@ const { Components, Snowflake } = require("detritus-client/lib/utils");
const { bold } = require("detritus-client/lib/utils/markup");
const onlyEmoji = require('emoji-aware').onlyEmoji;
const ecache = require('./emoji.json')
function toCodePoint(unicodeSurrogates, sep) {
var
@ -112,7 +111,6 @@ module.exports = {
components.clear();
if(newView.data.metadata.similar) for(const e of newView.data.metadata.similar.splice(0, 5)){
if(!ecache.includes(e)) continue;
components.addButton({
customId: 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(!ecache.includes(e)) continue;
components.addButton({
customId: e,
emoji: e,