IRC bot (primarily) for Twitch.
The bot is completely modular, adding a new command is simply
adding a new script (or folder) within the commands
-folder
and the same goes for rules (rules
-folder).
This is a work in progress and is currently only single-instance (aka. no separate threads handling messages and only able to join a single channel).
- Authenticating to Twitch IRC servers
- Responding to
ping
messages
.
├── bot.py
├── bot.conf
├── channels.conf
├── core
├── rules
| ├── my_rule.py
| ├── my_other_rule
| : └── __init__.py
└── commands
├── my_cmd.py
├── my_other_cmd
: └── __init__.py
This is the main start-file of the bot.
This is the config-file for all settings of the bot.
Setting | Description |
---|---|
host | Host server (eg. irc.twitch.tv). |
port | Server port (eg. 6667). |
nick | Nickname for the bot. |
password | OAuth-key for authentication towards server. |
channel | Channel to join. |
Currently not in use
Will, in the future, contain a list of all channels to join on start.
Core files of the bot. Handles incoming messages, dispatch to correct command- or rule script.
Rules to be automatically applied/enforced upon chat messages. For example deleting messages containing links.
Commands which may be invoked by keywords in messages (eg. !ping
, !info
, etc.)