Closed parithon closed 5 years ago
Just a quick note: I opened up an issue that I discovered while testing this out #102. Essentially for certain settings we should probably pull them whenever a command is invoked related to them in case they changed since first started.
It's not something we need to address in this PR as it affects other settings too but something we should look to work on separately.
Purpose
The bot should respond with instructions on how to use the command when somebody doesn't provide the required arguments with the command. See issue #95 for more details.
Changed Files
package.json
- Added the 'usageTip' setting to the contributionstwitchChatClient.ts
- Added theusageTip
parameter to the chatParams object.twitchLanguageServer.ts
- Added a parameter that captures the 'channel' the request comes in on so the bot knows which channel to respond to. When a user only uses the '!line' command without any arguments, and the usageTip is not empty, the bot will respond with the usageTip on how to use the command.constants.ts
- brings the Settings enum inline with the changes in package.jsontwitchLanguageServer.test.ts
- brings the method inline with the changes used in the twitchLanguageServer.Addresses
95