Browse Source

Added !help command to list available commands

shorten
benji7425 4 years ago
parent
commit
051c2a4e99
  1. 1
      CHANGELOG.md
  2. 1
      config.json
  3. 6
      feed-bot.js

1
CHANGELOG.md

@ -4,6 +4,7 @@
### Added
- Chat message/command to request a list of subscribed users
- The ability for users to 'subscribe' so they are tagged whenever a new link is posted
- Logging to a file
- Ability for user to request an upload of the logs file

1
config.json

@ -8,6 +8,7 @@
"subscribeRequestMessage": "!subscribe",
"unsubscribeRequestMessage": "!unsubscribe",
"subscribersListRequestMessage": "!sublist",
"helpRequestMessage": "!help",
"logFile": "./log",
"subscribersFile": "./subscribers.json"
}

6
feed-bot.js

@ -73,6 +73,12 @@ var DiscordClient = {
to: Config.channelID,
message: DiscordClient.bot.fixMessage("<@" + Subscriptions.subscribers.join("> <@") + ">")
});
break;
case Config.helpRequestMessage:
DiscordClient.bot.sendMessage({
to: Config.channelID,
message: Config.subscribeRequestMessage + ", " + Config.unsubscribeRequestMessage + ", " + Config.subscribersListRequestMessage
});
}
}
}

Loading…
Cancel
Save