From: CMDR furrycat Date: Sat, 4 Feb 2017 22:30:38 +0000 (+0000) Subject: Support direction command from edts. X-Git-Url: http://git.furryclan.net/?a=commitdiff_plain;h=ed3367eee284badd025916c982d24c3348233e8a;p=furrycat%2Fcatbot.git Support direction command from edts. --- diff --git a/app.py b/app.py index 5451938..145c773 100644 --- a/app.py +++ b/app.py @@ -63,7 +63,7 @@ def show_help(message, *args): command = None if command is None: - valid_commands = ['coords', 'close_to', 'distance', 'edts', 'find', 'fuel_usage', 'galmath', 'id', 'raikogram', 'time'] + valid_commands = ['coords', 'close_to', 'direction', 'distance', 'edts', 'find', 'fuel_usage', 'galmath', 'id', 'raikogram', 'time'] valid_commands += plugins.valid_commands() lines = [ '<@{}>, the cat-like robot from the 34th century of the future, recognises these commands (and more):'.format(client.user.id), @@ -82,7 +82,7 @@ def show_help(message, *args): '```time```', 'Useful for `announce create` or to check in-game time.' ] - elif command in ['coords', 'close_to', 'distance', 'edts', 'find', 'fuel_usage', 'galmath', 'raikogram']: + elif command in ['coords', 'close_to', 'direction', 'distance', 'edts', 'find', 'fuel_usage', 'galmath', 'raikogram']: params = modules['edi'] fn = params['fn'] args = params['args'] @@ -211,7 +211,7 @@ modules = { 'edi': { 'fn': do_edi, 'args': [p], - 'commands': ['coords', 'close_to', 'distance', 'edts', 'find', 'fuel_usage', 'galmath', 'raikogram'] + 'commands': ['coords', 'close_to', 'direction', 'distance', 'edts', 'find', 'fuel_usage', 'galmath', 'raikogram'] }, 'fork': { 'fn': do_fork,