aboutsummaryrefslogtreecommitdiff
path: root/twitch-bot
diff options
context:
space:
mode:
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) {