Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import irc3
from irc3.plugins.command import Commands
class Custom:
def __init__(self, context):
self.context = context
self.command = context.get_plugin(Commands)
@irc3.event((r':(?P<mask>\S+) PRIVMSG (?P<target>\S+) '
def on_command(self, cmd, **kw):
self.command.on_command(cmd, **kw)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment