aboutsummaryrefslogtreecommitdiff
path: root/twitch-bot
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2022-03-11 23:28:10 -0700
committerBryson Steck <steck.bryson@gmail.com>2022-03-11 23:28:10 -0700
commitced9b6a44f7e5489e518ea029f630537fa5523e1 (patch)
tree8a1edb368ccada14003651f9cb79836d4bbbf87e /twitch-bot
parentb5603f9b2292bbaada364b0edf6448f9f5414dd6 (diff)
downloadlset-ced9b6a44f7e5489e518ea029f630537fa5523e1.tar
lset-ced9b6a44f7e5489e518ea029f630537fa5523e1.tar.gz
lset-ced9b6a44f7e5489e518ea029f630537fa5523e1.tar.bz2
added about command, fixed help command output
Diffstat (limited to 'twitch-bot')
-rw-r--r--twitch-bot/bot.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/twitch-bot/bot.js b/twitch-bot/bot.js
index 9c874a0..412b0bb 100644
--- a/twitch-bot/bot.js
+++ b/twitch-bot/bot.js
@@ -53,16 +53,15 @@ function commands (target, commandName, user, mods) {
if (mods.indexOf(user) >= 0) isMod = true;
if (commandName === "help") {
- var allCommands = [];
- var finalString = "";
+ var finalString = settings.command_char + "help " + settings.command_char + "about ";
chat_commands.forEach(command => {
- allCommands.push(command.command);
- });
- allCommands.forEach(command => {
finalString = finalString + settings.command_char + command.command + " ";
});
client.say(target, `Here is the list of commands: ${finalString}`);
valid = true;
+ } else if (commandName === "about") {
+ client.say(target, `This bot was stolen from https://github.com/brysonsteck/lset under the MIT License and configured by your streamer, ${settings.your_username}!`);
+ valid = true;
} else {
chat_commands.forEach(command => {
if (commandName.search(command.command) !== -1) {