A fully functioning multi-threaded IRC client.
Project description
This is a multi-threaded IRC bot that was designed to connect to multiple networks and load multiple modules. An example bot would look like:
#!/usr/bin/env python from __future__ import unicode_literals from mtirc import bot from mtirc import ettings config = settings.config config['nick'] = 'nick' def thing(**kw): if kw['text'].startswith('!whoami'): kw['bot'].queue_msg(kw['channel'], 'You are {0} with the host {1}.'.format( kw['sender'].nick, kw['sender'].host)) return True config['modules']['whoami'] = thing b = bot.Bot(config) b.run()
Features
Nearly every thing is configurable
Settings can be set for an individual connection or globally
Can use as many parse threads as set in config
Will attempt to reconnect if disconnected
Will disable modules after too many exceptions
More to come!
License
Released under the MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mtirc-0.2.0.tar.gz
(5.8 kB
view details)
File details
Details for the file mtirc-0.2.0.tar.gz
.
File metadata
- Download URL: mtirc-0.2.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d991a4ac29e1e49cf00f32372401f6d182d15260c7fead98fb5dcc35864e2bfa |
|
MD5 | 576ed932c47b6dfdf79c0afa2a7c24c6 |
|
BLAKE2b-256 | 638c9f4e19facb5ffb73bf5f1e9d09e8b00d04f4b5a21077b3465c2ea93c242c |