]> jfr.im git - erebus.git/blame - modules/example_flags.py
update comments
[erebus.git] / modules / example_flags.py
CommitLineData
61f0da11
JR
1# Erebus IRC bot - Author: Erebus Team
2# vim: fileencoding=utf-8
bac69af4 3# An example of the "flags" capability
61f0da11
JR
4# This file is released into the public domain; see http://unlicense.org/
5
6# module info
7modinfo = {
8 'author': 'Erebus Team',
9 'license': 'public domain',
10 'compatible': [0],
11 'depends': [],
12 'softdeps': ['help'],
13}
14
15# preamble
16import modlib
17lib = modlib.modlib(__name__)
18modstart = lib.modstart
19modstop = lib.modstop
20
21# module code
22import sys, os
23import ctlmod
24from collections import deque
25
26
27@lib.hook(needchan=False)
28@lib.flags('foo','bar','baz','barz')
29@lib.argsGE(1)
30def flags(bot, user, chan, realtarget, flags, *args):
31 return repr((flags, args))