Multi-Threaded IRC bot
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 settings
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
Metadata
Release files for mtirc 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mtirc-0.2.1.tar.gz | 5.7 kB | Without provenance | Details for mtirc-0.2.1.tar.gz |
Release files / mtirc-0.2.1.tar.gz
| Download URL | mtirc-0.2.1.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
06cbcbfca9217606b55e084dd693546bc4321eb1b24c82e08735320e91d17f2f
|
|
BLAKE2b-256 checksum How to use checksums |
75fa57f9f21eacb1709aff028d764622e21e20c87952adf58338ea62852b1ff0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for mtirc 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.