tangled
alpha
login
or
join now
thevoid.cafe
/
voidy
0
fork
atom
A powerful and extendable Discord bot, with it's own module system :3
thevoid.cafe/projects/voidy
0
fork
atom
overview
issues
pulls
pipelines
✨ Add "log" command for debugging
Jo
1 year ago
5ddb29f3
135d9f24
+22
1 changed file
expand all
collapse all
unified
split
src
features
chatbot
commands
log.ts
+22
src/features/chatbot/commands/log.ts
···
1
1
+
import { SlashCommandBuilder } from "discord.js";
2
2
+
import { Command } from "../../../utils/classes/Command.ts";
3
3
+
4
4
+
export default new Command({
5
5
+
data: new SlashCommandBuilder()
6
6
+
.setName("log")
7
7
+
.setDescription("Make the bot log any message.")
8
8
+
.addStringOption((option) => option
9
9
+
.setName("message")
10
10
+
.setDescription("The message you'd like to send.")
11
11
+
.setRequired(true)),
12
12
+
execute(interaction) {
13
13
+
const { options } = interaction;
14
14
+
15
15
+
console.log(options.getString("message"));
16
16
+
17
17
+
interaction.reply({
18
18
+
content: "Successfully sent message to the logs :3",
19
19
+
flags: ["Ephemeral"]
20
20
+
})
21
21
+
},
22
22
+
});