I’m want to creat a specific command in nightbot. So, when the user digit this command in chat (e.g. !poker), the bot must return a word/sentence previously registrered.
The bot must do a sort of this words/sentences and show in the chat, as follow:
I think that nightbot’s api have support for this. Any key-value archive, or something like this.
What would the user enter?
will be like a standard command. But the response isnt the same… Its like a lottery. The user can use the command (!handpoker) and the bot returns (randomly) a hand poker.
You can use the eval variable to make a random response. Look at our docs for an example of the 8ball command, which is similar to what you want: https://docs.nightbot.tv/commands/variables/eval