From 6890d70b9b96be39249c7f729d3bc91b5f919cda Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sat, 15 May 2021 12:51:33 -0500 Subject: [PATCH] Replace separate round commands with single round command using subcommands --- bot/awesomescibo.js | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/bot/awesomescibo.js b/bot/awesomescibo.js index ff80f39..ec8325e 100755 --- a/bot/awesomescibo.js +++ b/bot/awesomescibo.js @@ -36,13 +36,22 @@ client.once("ready", () => { "description": "Replies with a help message explaining what the bot can do" }, { - "name": "round generate", - "description": "Generates a round with randomized questions from https://scibowldb.com/" - }, - { - "name": "round list", - "description": "Lists your 5 most recently generated rounds with links" - }, + "name": "round", + "options": [ + { + "type": 1, + "name": "generate", + "description": "Generates a round with randomized questions from https://scibowldb.com/", + "options": [] + }, + { + "type": 1, + "name": "list", + "description": "Lists your 5 most recently generated rounds with links", + "options": [] + } + ], + } ]); // Connect to MongoDB using mongoose