Skip to content

Instantly share code, notes, and snippets.

@openmailbox
openmailbox / twitch_bot.rb
Last active September 21, 2021 14:45
A quick example of a Twitch chat bot using Ruby.
# A quick example of a Twitch chat bot in Ruby.
# No third party libraries. Just Ruby standard lib.
#
# See the tutorial video: https://www.youtube.com/watch?v=_FbRcZNdNjQ
#
# You can fill in creds here or use environment variables if you choose.
TWITCH_CHAT_TOKEN = ENV['TWITCH_CHAT_TOKEN']
TWITCH_USER = ENV['TWITCH_USER']