mirror of
https://github.com/danbulant/cnmc-bot
synced 2026-07-07 04:00:52 +00:00
Add end command
This commit is contained in:
parent
0d9c249e51
commit
ba503b123e
1 changed files with 6 additions and 1 deletions
|
|
@ -13,7 +13,12 @@ app
|
||||||
if(msg.author.id === "694395936809418816" && msg.content === "!reset") {
|
if(msg.author.id === "694395936809418816" && msg.content === "!reset") {
|
||||||
answers.clear();
|
answers.clear();
|
||||||
challenge.clear();
|
challenge.clear();
|
||||||
msg.reply("done.");
|
points.clear();
|
||||||
|
msg.reply("Done.");
|
||||||
|
return false;
|
||||||
|
} else if(msg.author.id === "694395936809418816" && msg.content === "!end") {
|
||||||
|
challenge.set("type", 0);
|
||||||
|
msg.reply("Done.");
|
||||||
return false;
|
return false;
|
||||||
} else if(msg.author.id === "694395936809418816" && msg.content.startsWith("!start")) {
|
} else if(msg.author.id === "694395936809418816" && msg.content.startsWith("!start")) {
|
||||||
var num = msg.content.split(" ")[1][0];
|
var num = msg.content.split(" ")[1][0];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue