mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 14:13:02 -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
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
|
||||||
};
|
|
|
@ -11,7 +11,6 @@
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bottomify": "^0.3.0",
|
|
||||||
"detritus-client": "^0.17.0-beta.16",
|
"detritus-client": "^0.17.0-beta.16",
|
||||||
"dotenv": "^16.0.1",
|
"dotenv": "^16.0.1",
|
||||||
"emoji-aware": "^3.1.0",
|
"emoji-aware": "^3.1.0",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue