Skip to content

A simple bot to use in your Twitch chat to track pushups!

Notifications You must be signed in to change notification settings

mbcrump/crumpbot

Repository files navigation

Python Chatbot for Twitch From Scratch

What is it? It is a simple bot that I created to use in your Twitch chat to track pushups! Your viewers can always see how much pushups that you have left to do on stream and your moderator can add/remove/reset pushups to the queue. But furthermore, it is for learning how to create a Twitch bot using Python, creating and securing your client keys and persisting data throughout sessions.

Instructions

  1. Run git clone https://github.com/mbcrump/crumpbot.git on your local machine and change directories into it.
  2. Create your own Twitch account if you don't already have one.
  3. Use Incognito mode or log out of your primary account to create an account for your bot.
  4. Stay logged in to the bot account and continue to the next step.
  5. Visit TwitchApps/TMI to generate your oauth token
  6. Create a settings.json file add the following information:
{
    "clientkey":"oauth:yourkey",
    "channel":"yourchannel",
    "username":"yourbotusername",
    "pushups":0
}
  1. Run node bot.js and after a moment or so you should see your bot join the chatroom.
  2. You can now type:
  • !pushups to see the number of pushups left to do
  • !add to add 10 pushups
  • !remove to remove 10 pushups
  • !reset to reset back to 0 pushups

Find me on Twitter or Twitch for questions.

About

A simple bot to use in your Twitch chat to track pushups!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published