Skip to content

Commit 49fac29

Browse files
committed
Tweaks
1 parent 4528827 commit 49fac29

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

commands/trivia.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ let categories = {
3131
}
3232

3333
exports.run = (message, bot, send) => {
34+
if (message.suffix === "categories") {
35+
return send("**Available Categories:**\n" + Object.keys(categories).join(", "))
36+
}
3437
let diff = message.args[0] || "random"
3538
let cat = message.args[1] || "random"
3639

@@ -63,7 +66,7 @@ exports.conf = {
6366
coolDown: 0,
6467
dm: false,
6568
category: "Fun",
66-
help: "I'll ask a trivia question in chat. Options `n!trivia <diff> <category>` diff = easy, medium, hard, random - category = " + Object.keys(categories).join(", "),
69+
help: "I'll ask a trivia question in chat. Options `n!trivia <diff> <category>` diff = easy, medium, hard, random - category = see category list with `n!trivia categories`",
6770
args: "",
6871
}
6972

0 commit comments

Comments
 (0)