mirror of
http://aero2k.de/t/repos/urlbot-native.git
synced 2017-09-06 15:25:38 +02:00
introduce direct message support, add back fixed event loop
This commit is contained in:
@@ -77,8 +77,6 @@ def command_source(argv, **_):
|
||||
|
||||
@pluginfunction('dice', 'rolls a dice, optional N times', ptypes_COMMAND, ratelimit_class=RATE_INTERACTIVE)
|
||||
def command_dice(argv, **args):
|
||||
if 'dice' != argv[0]:
|
||||
return
|
||||
try:
|
||||
count = 1 if len(argv) < 2 else int(argv[1])
|
||||
except ValueError as e:
|
||||
@@ -753,7 +751,7 @@ def show_runtimeconfig(argv, **args):
|
||||
return
|
||||
else:
|
||||
msg = json.dumps(config.runtime_config_store, indent=4)
|
||||
return {'msg': msg}
|
||||
return {'priv_msg': msg}
|
||||
|
||||
|
||||
@pluginfunction('reload-runtimeconfig', "reload the runtimeconfig", ptypes_COMMAND, ratelimit_class=RATE_NO_LIMIT)
|
||||
|
||||
Reference in New Issue
Block a user