diff options
Diffstat (limited to 'src/main.py')
| -rw-r--r-- | src/main.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.py b/src/main.py index c2980a7..eeffa54 100644 --- a/src/main.py +++ b/src/main.py @@ -51,7 +51,7 @@ async def handle_messages(message, say): args = parts[2:] if command == "help": - await say("*Botnet Commands*:\n---\n*botnet help*: shows this message\n*botnet deploy <message>*: sends a message into the deploy queue for review/voting\n*botnet approve <channel>*: approve Botnet to function in a channel (must be CM)\n*botnet revoke <channel>*: revoke approval for Botnet to unction in a channel (must be CM)", mrkdwn=True) + await say("*Botnet Commands*:\n---\n*botnet help*: shows this message\n*botnet deploy <message>*: sends a message into the deploy queue for review/voting\n*botnet approve <channel>*: approve Botnet to function in a channel (must be CM)\n*botnet revoke <channel>*: revoke approval for Botnet to unction in a channel (must be CM)\n*botnet oauth*: sends you an OAuth link to join the botnet", mrkdwn=True) elif command == "deploy": if not args: await say("Please provide a message to deploy!") @@ -106,6 +106,8 @@ async def handle_messages(message, say): await revoke_channel_approval(channel_id) await say(f"T_T Channel {args[0].strip()} has been revoked approval for Botnet!") + elif command == "oauth": + await say(f"{os.environ.get('SLAKC_OAUTH_PREFIX')}/slack/oauth/install") else: await say(f"Unknown command: {command}") except Exception as e: |
