diff --git a/commands/interaction/context/bottom.js b/commands/interaction/context/bottom.js deleted file mode 100644 index 4e84c9c..0000000 --- a/commands/interaction/context/bottom.js +++ /dev/null @@ -1,32 +0,0 @@ -const { Constants } = require('detritus-client'); -const { InteractionCallbackTypes, ApplicationCommandTypes, MessageFlags } = Constants; - -const { createEmbed } = require('../../../labscore/utils/embed'); -const { codeblock } = require('../../../labscore/utils/markdown'); - -const { decode } = require('bottomify') - -module.exports = { - name: 'Decode Bottom', - type: ApplicationCommandTypes.MESSAGE, - run: async (context, args) => { - try{ - const { message } = args; - - let decodedMessage = decode(message.content) - - await context.respond({data: { flags: MessageFlags.EPHEMERAL, embeds: [ - createEmbed("default", context, { - description: codeblock("py", [decodedMessage]) - }) - ] }, type: InteractionCallbackTypes.CHANNEL_MESSAGE_WITH_SOURCE}) - - }catch(e){ - console.log(e) - await context.editOrRespond({ - embeds: [createEmbed("error", context, "Unable to decode message.")], - flags: MessageFlags.EPHEMERAL - }) - } - }, -}; \ No newline at end of file diff --git a/package.json b/package.json index fc7384c..e57c8d7 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,6 @@ "author": "", "license": "ISC", "dependencies": { - "bottomify": "^0.3.0", "detritus-client": "^0.17.0-beta.16", "dotenv": "^16.0.1", "emoji-aware": "^3.1.0",