mirror of
http://aero2k.de/t/repos/urlbot-native.git
synced 2017-09-06 15:25:38 +02:00
systemd support and separate message queues per room
This commit is contained in:
@@ -801,12 +801,12 @@ def raise_an_error(argv, **args):
|
||||
raise RuntimeError("Exception for debugging")
|
||||
|
||||
|
||||
@pluginfunction('repeat', 'repeat the last message', ptypes.COMMAND, enabled=False)
|
||||
@pluginfunction('repeat', 'repeat the last message', ptypes.COMMAND)
|
||||
def repeat_message(argv, **args):
|
||||
return {'msg': 'disabled until channel separation'}
|
||||
return {
|
||||
'msg': args['stack'][-1]['body']
|
||||
}
|
||||
if args['stack']:
|
||||
return {
|
||||
'msg': args['stack'][-1]['body']
|
||||
}
|
||||
|
||||
|
||||
@pluginfunction('isdown', 'check if a website is reachable', ptypes.COMMAND)
|
||||
|
||||
@@ -22,6 +22,8 @@ def translate(argv, **args):
|
||||
if not api_key:
|
||||
return
|
||||
message_stack = args['stack']
|
||||
if not message_stack[-1]:
|
||||
return
|
||||
last_message = message_stack[-1]['body']
|
||||
data = {
|
||||
'q': last_message,
|
||||
|
||||
Reference in New Issue
Block a user