mirror of
http://aero2k.de/t/repos/urlbot-native.git
synced 2017-09-06 15:25:38 +02:00
keks
This commit is contained in:
12
plugins.py
12
plugins.py
@@ -613,6 +613,18 @@ def command_cake(argv, **args):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@pluginfunction('keks', 'keks!', ptypes_COMMAND, ratelimit_class=RATE_FUN | RATE_GLOBAL)
|
||||||
|
def command_cookie(argv, **args):
|
||||||
|
if {'please', 'bitte'}.intersection(set(argv)):
|
||||||
|
return {
|
||||||
|
'msg': 'keks für {}: {}'.format(args['reply_user'], giphy('cookie', 'dc6zaTOxFJmzC'))
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
'msg': args['reply_user'] + ': %s' % (random.sample(cakes, 1)[0])
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@pluginfunction('plugin', "'disable' or 'enable' plugins", ptypes_COMMAND)
|
@pluginfunction('plugin', "'disable' or 'enable' plugins", ptypes_COMMAND)
|
||||||
def command_plugin_activation(argv, **args):
|
def command_plugin_activation(argv, **args):
|
||||||
if argv[0] != 'plugin' or len(argv) == 1:
|
if argv[0] != 'plugin' or len(argv) == 1:
|
||||||
|
|||||||
Reference in New Issue
Block a user