Skip to main content

A simple async irc bot framework with regex command definitions and data permanency

Project description

Simple IRC Bot Framework

What is this?

Just a experimental and simple irc base bot designed to make it easy to add commands and that also shows previews for urls. A demo can be seen on the ##0dev freenode channel.

How to add/edit commands?

Just go to commands.py.

INFO_CMDS is a dict that has regex expressions as keys for that will match and return the static text at value. This is useful for creating like the rules commands and whatever will return just static text.

With the @utils.regex_cmd decorator you can match regular expressions and run whatever you want with the received message that is the argument this function will receive. This handler function has to either return a string, that will be the delivered message, or a list of strings that will be multiple messages to be send.

TODO

  1. Support for private messages
  2. Data permanency.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

re-ircbot-0.1.tar.gz (11.1 kB view hashes)

Uploaded Source

Built Distribution

re_ircbot-0.1-py3-none-any.whl (8.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page