Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

twitchdev/chatbot-python-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

1 Commit

Repository files navigation

Twitch Chatbot Python Sample

Here you will find a simple Python chatbot using IRC that can help demonstrate how to interact with chat on Twitch.

Installation

After you have cloned this repository, use pip or easy_install to install the IRC library.

$ pip install irc

Usage

To run the chatbot, you will need to provide an OAuth access token with the chat_login scope. You can reference an authentication sample to accomplish this, or simply use the Twitch Chat OAuth Password Generator.

$ python chatbot.py <username> <client id> <token> <channel>
  • Username - The username of the chatbot
  • Client ID - Your registered application's Client ID to allow API calls by the bot
  • Token - Your OAuth Token
  • Channel - The channel your bot will connect to

Next Steps

Feel free to augment the chatbot with your own new commands by adding them in the do_command() function.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /