From 5f92e6d65bcb3c440153f889dab7339290f57286 Mon Sep 17 00:00:00 2001 From: Arslaan Pathan Date: Fri, 17 Jul 2026 00:12:01 +1200 Subject: QUICK OAUTH --- src/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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 *: sends a message into the deploy queue for review/voting\n*botnet approve *: approve Botnet to function in a channel (must be CM)\n*botnet revoke *: 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 *: sends a message into the deploy queue for review/voting\n*botnet approve *: approve Botnet to function in a channel (must be CM)\n*botnet revoke *: 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: -- cgit v1.2.3