Support direction command from edts.
authorCMDR furrycat <elite@furrycat.net>
Sat, 4 Feb 2017 22:30:38 +0000 (22:30 +0000)
committerCMDR furrycat <elite@furrycat.net>
Sat, 4 Feb 2017 22:30:38 +0000 (22:30 +0000)
app.py

diff --git a/app.py b/app.py
index 5451938..145c773 100644 (file)
--- 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,