Skip to content

jacym/fbai2-twitchbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wit AI AutoModerator For Twitch

An automated moderator service using Wit AI for Twitch live chat. Initially built for Facebook Hackathon.

Setup

Note: sometimes wit doesn't initialize with the pipenv. Eun pipenv install wit before the following to make sure its installed.

Full Twitch Setup

Requirements:

  • Python 3.8
  • A Twitch account authorized to create bots
  • Your Twitch OAuth token

Firstly, create a .env file in the same directory as the files in this repository.

Your pipenv .env file should contain the following information:

# .env
TMI_TOKEN=oauth: YOUR TWITCH OAUTH TOKEN
CLIENT_ID= YOUR TWITCH CLIENT ID
BOT_NICK=BOT NICK NAME
BOT_PREFIX=!
CHANNEL=CHANNEL TO RUN BOT
WIT_TOKEN= WIT AI TOKEN

TMI_TOKEN can be found at https://twitchapps.com/tmi/ CLIENT_ID can be found after you create an app on your Twitch account.

Then run the bot using: pipenv run python Autobot.py run

Cmd Line Chat Test Setup

If the goal is just to try out the AutoMod functionality without connecting to a Twitch chat simply fill in the above .env file with filler data on each line except for the Wit token.

Then run the bot using: pipenv run python Autobot.py test

This will create a command line chat for you to emulate a chat experience and demonstrate the AutoMod capabilities.

About

project for fbai2 devpost hackathon

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages