We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 027881e commit 4ada5a0Copy full SHA for 4ada5a0
test/index.js
@@ -16,16 +16,18 @@ client.on("message", (message) => {
16
17
const args = message.content.slice("!".length).split(" ");
18
const cmd = args.shift().toLowerCase();
19
-
20
- if (cmd === "!abandon") {
+
+ if (cmd === "abandon") {
21
//create image and send it in the channel
22
memer.abandon(args.join(" ")).then(image => {
23
const attachment = new Discord.MessageAttachment(image, "spank.png");
24
return message.channel.send(attachment);
25
+ }).catch(e => {
26
+ message.channel.send(String(e).substr(0, 2000), {code: "js"})
27
})
28
}
29
30
});
31
32
//login to the Discord Bot
-client.login("TOKEN");
33
+client.login("YOUR DISCORD BOT TOKEN GOES HERE");
0 commit comments