https://github.com/markwinter/irc-bot
Python IRC Bot
https://github.com/markwinter/irc-bot
Last synced: 10 months ago
JSON representation
Python IRC Bot
- Host: GitHub
- URL: https://github.com/markwinter/irc-bot
- Owner: markwinter
- License: mit
- Created: 2015-06-29T23:25:39.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-10-31T04:46:40.000Z (over 10 years ago)
- Last Synced: 2024-12-06T20:24:32.215Z (over 1 year ago)
- Language: Python
- Size: 223 KB
- Stars: 4
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IRC-Bot
Python IRC Bot
### Using this bot
Everything that needs to be changed to make the bot your own is in the parameters of `init` of `Bot` in ircbot.py.
You will also need to create two files in the directory ircbot.py resides in, one for your password and one for your host.
By default these files are called `password` and `host` but can be changed for each bot using the `password_file` and `host_file`
parameters.
To create multiple instances of bots, you use the channel variable passed to `init` using a unique
name each time.
### Adding commands to the bot
- Create a new appropriately named file for your command
- In the new file implement a class that has the method `execute(self, keywords, target, source, ircbot)` and `usage(self)`
- Improper usage of a command should return -1 in `execute` and define the usage string in `usage`
- Import your class in ircbot.py
- Add your command to the list of commands in the `init` of Bot() in ircbot.py