FatBotSlim
Yet another Python IRC bot library…
Features:
asynchronous
multi-server
easy to use plugin system
rights management for user-defined commands
automated help messages generation for custom plugins
colored logging
colored IRC messages
command line parser to set your custom bot settings from the console
Dependencies:
gevent
chardet
Installation:
From GitHub:
git clone https://github.com/mattoufoutu/fatbotslim.git cd fatbotslim python setup.py install
From PyPI:
pip install fatbotslim
Documentation:
The documentation is hosted on readthedocs and is available in the following formats:
Example:
This very simple bot answers Hello <username>! when someone says !hello in a public message.
Using the fatbotslim.cli helpers also gives your bot an integrated command line arguments parser.
For more detailed informations about writing custom handlers and more complex bots, please refer to the documentation.
from fatbotslim.cli import make_bot, main
from fatbotslim.handlers import CommandHandler, EVT_PUBLIC
class HelloCommand(CommandHandler):
triggers = {
'hello': [EVT_PUBLIC],
}
def hello(self, msg):
self.irc.msg(msg.dst, "Hello {0}!".format(msg.src.name))
bot = make_bot()
bot.add_handler(HelloCommand)
main(bot)
Just try it!
Metadata
Release files for FatBotSlim 0.2
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 |
|---|---|---|---|---|
| FatBotSlim-0.2.tar.gz | 14.4 kB | Without provenance | Details for FatBotSlim-0.2.tar.gz |
Release files / FatBotSlim-0.2.tar.gz
| Download URL | FatBotSlim-0.2.tar.gz |
|---|---|
| Size | 14.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
38905875531c8616384d8cdf7e77ce8cf4420e1823a629e8c1f57ddd9c7ab840
|
|
BLAKE2b-256 checksum How to use checksums |
016fa6d823175922660d030f0ed106f88223075aab699952d86a9e86de4264bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for FatBotSlim 0.2
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.