]>
jfr.im git - erebus.git/blob - modules/example_flags.py
b22ae576fdaf25579b0db0495507af7eab61aede
1 # Erebus IRC bot - Author: Erebus Team
2 # vim: fileencoding=utf-8
3 # An example of the "flags" capability
4 # This file is released into the public domain; see http://unlicense.org/
8 'author': 'Erebus Team',
9 'license': 'public domain',
17 lib
= modlib
.modlib(__name__
)
18 modstart
= lib
.modstart
24 from collections
import deque
27 @lib.hook(needchan
=False)
28 @lib.flags('foo','bar','baz','barz')
30 def flags(bot
, user
, chan
, realtarget
, flags
, *args
):
31 return repr((flags
, args
))