diff --git a/commands/interaction/slash/utils/emoji.js b/commands/interaction/slash/utils/emoji.js index 0d6cb19..13de816 100644 --- a/commands/interaction/slash/utils/emoji.js +++ b/commands/interaction/slash/utils/emoji.js @@ -74,8 +74,7 @@ module.exports = { ); embeds = [] if (matches.length) { - ingest("emoji_enlarge", "slash_command_ran"); - + let pages = []; let entries = []; for(const m of matches){ @@ -120,7 +119,6 @@ module.exports = { // Emoji Mixing if(emoji.length >= 2){ - ingest("emoji_emojikitchen", "slash_command_ran"); if(emoji.length >= 3) return editOrReply(context, createEmbed("warning", context, "You cannot mix more than two emoji.")); try{ @@ -143,7 +141,6 @@ module.exports = { } // Regular Emoji Handling - ingest("emoji_enlarge", "slash_command_ran"); if(emoji.length === 0) return await editOrReply(context, createEmbed("warning", context, "You need to specify an emoji to enlarge.")) let res; diff --git a/commands/message/utils/emoji.js b/commands/message/utils/emoji.js index b2fc12e..43053f0 100644 --- a/commands/message/utils/emoji.js +++ b/commands/message/utils/emoji.js @@ -63,7 +63,6 @@ module.exports = { // Stickers if(msg.stickerItems.length){ - ingest("emoji_sticker", "command_ran"); let s = msg.stickerItems.first() // lottie if(s.formatType == 3) return editOrReply(context, createEmbed("default", context, { @@ -91,7 +90,6 @@ module.exports = { ); embeds = [] if (matches.length) { - ingest("emoji_enlarge", "command_ran"); let pages = []; let entries = []; @@ -137,7 +135,6 @@ module.exports = { // Emoji Mixing if(emoji.length >= 2){ try{ - ingest("emoji_emojikitchen", "command_ran"); if(emoji.length >= 3) return editOrReply(context, createEmbed("warning", context, "You cannot mix more than two emoji.")); let em = await emojiKitchen(emoji) @@ -158,7 +155,6 @@ module.exports = { } } - ingest("emoji_enlarge", "command_ran"); // Regular Emoji Handling if(emoji.length == 0) return await editOrReply(context, createEmbed("warning", context, "You need to specify an emoji to enlarge.")) diff --git a/labscore/client.js b/labscore/client.js index 67537c7..1891ef2 100644 --- a/labscore/client.js +++ b/labscore/client.js @@ -91,10 +91,6 @@ const { createEmbed } = require('#utils/embed'); const { icon, highlight } = require('#utils/markdown'); const { editOrReply } = require('#utils/message'); -// Analytics -commandClient.on('commandRan', ({ context, command }) => { if(!command.metadata.use_custom_ingest) ingest(command.name, "command_ran")} ) -interactionClient.on('commandRan', ({ context, command }) => { if(!command.metadata.use_custom_ingest) ingest(command.name, "slash_command_ran")} ) - // Handle missing permission errors commandClient.on('commandPermissionsFailClient', ({context, permissions}) => { if(!context.channel.can(Permissions.SEND_MESSAGES)) return; diff --git a/labscore/logging.js b/labscore/logging.js index 418a763..1e80365 100644 --- a/labscore/logging.js +++ b/labscore/logging.js @@ -45,15 +45,4 @@ module.exports.basecamp = async function (log, content = ""){ console.log(e) throw "Basecamp request failed." } -} - -module.exports.ingest = async function (event, type = "generic"){ - if(!process.env.INGEST_SERVICE_HOST) return console.warn("No ingest service host configured.") - try{ - let r = await superagent.get(`${process.env.INGEST_SERVICE_HOST}/d/${type}/${encodeURIComponent(event)}`) - .set("x-ingest-client", process.env.INGEST_SERVICE_CLIENT) - }catch(e){ - console.log(e) - console.log("ingest failed") - } } \ No newline at end of file