From a1f8e1695f3b3700132212d2f25ef710ff270372 Mon Sep 17 00:00:00 2001 From: blakewenloe Date: Thu, 4 Jul 2019 17:38:20 -0400 Subject: [PATCH] added ?help command --- bot.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bot.js b/bot.js index 9191426..d5ca8d3 100644 --- a/bot.js +++ b/bot.js @@ -46,5 +46,11 @@ client.on("message", message => { getWeather(callsign, message); return; } + if (command === "help") { + message.channel.send( + "**Currently available commands**:\n`?loc callsign` to retrieve location information.\n`?wx callsign` to retrieve weather data." + ); + return; + } }); client.login(config.token);