Tearzz 26401b93fb | 6 years ago | |
---|---|---|
Responses | 6 years ago | |
CommandsHandler.rb | 6 years ago | |
LICENSE | 6 years ago | |
README.md | 6 years ago | |
TwitchBot.rb | 6 years ago | |
credentials.txt | 6 years ago |
A simple chatbot for Twitch written in Ruby. Used for handling commands and previewing chat so that you don't need to have the browser open and can avoid using a lot of RAM and CPU.
I use this chatbot to preview chat without having a browser open so that I save CPU and RAM. But as you can see in the preview image it's also able to handle custom commands including API commands.
Adding Commands:
commands
array and add your own.If you are adding admin commands add a custom response next to it. There you'll be able to add commands that gives data to the socket instead of a chat message as a response. Example:
admin_commands = { "disconnect" => "PART ##{CHANNEL}" }
When the command "!disconnect"
has been typed in chat ("!" is the default prefix but can be changed) by the channel owner it will send a request to disconnect from the current Twitch channel.
Extras: The response files in the Responses folder have 3 arguments available (You can add your own)
In the template the arguments USER, CHANNEL, COMMANDS are available. (COMMANDS shows all available commands)