mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-07 21:53:07 -04:00
remove joke command
This commit is contained in:
parent
595cd23077
commit
a2bcb423cf
2 changed files with 0 additions and 33 deletions
|
@ -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
|
||||
})
|
||||
}
|
||||
},
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue