Python 3
bot which logs chat messages in the Twitch channels with the highest viewers.
-
Python 3.5 or newer.
-
Requests is used to get data on the most popular streamers online right now.
pip install requests
Fill out the settings in config.ini
and then run run_bot.py
. Log files will be saved in the same directory as the script in a directory called logs
Parameter | Description |
username | What the bot will call itself when joining the IRC server. Do not use the same name as a popular streamer, it will cause issues. |
token | The Twitch IRC requires an OAuth token for authentication. See here to get your own token. |
client_id | The Twitch API requires a ClientID for API access which we use to get a list of currently popular streamers. See the Twitch API docs to get your own client ID |
channel_limit | The number of IRC channels to join. Ex. If set to 20 the bot will join and log the 20 channels with the most viewers. Max: 100 |
This will join the top 10 streamers with the name john_logger_bot999.
config.ini
username = john_logger_bot999
token = oauth:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
client_id = xxxxxxxxxxxxxxxxxxxxxxxxxxx
channel_limit = 10
Reach out to me at one of the following places if you need help!
- Reddit at
/u/AntiHydrogen
- Github at
disabledtech
MIT License
Copyright (c) 2019 disabledtech
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.