This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//... | |
const GOOGLE_API_KEY = "CóCáiLồnĐịtConBàMày" | |
const snekfetch = require('snekfetch'); | |
client.on("message", async message => { | |
if (message.author.bot) return; // return if message was sent from bot | |
const emojiId = message.content.replace(/<a?:(.*?):+/g, ''); | |
let imageUrl = `https://cdn.discordapp.com/emojis/${emojiId}`; | |
if(message.content === imageUrl) return; // return if message only contains emojis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import request from "request"; | |
import fs from 'fs'; | |
var arr = ["discord", "emote", "betterdiscord", "code_braces", "puzzle", "palette", "close", "file", "file_upload", "file_document", "file_archive", | |
"file_code", "file_webcode", "file_image", "file_video", "file_table", "file_pdf", "file_music", "expand_more", "verified", "popout", "person", "user_profile", "security", | |
"apps", "link", "nitro", "server_boost", "subscriptions", "gift", "payment", "camera", "accessibility", "mic", "chat", "notifications", "keyboard", "language", | |
"windows", "linux", "videocam", "bugs", "games", "aspect_ratio", "history", "hypesquad", "exit" | |
]; | |
var arrle = arr.length; |