Skip to content

Commit

Permalink
Remove unused env var
Browse files Browse the repository at this point in the history
  • Loading branch information
lloesche committed Jan 25, 2024
1 parent efafb1e commit 3b4f448
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions somebot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,17 @@
SLACK_BOT_TOKEN = os.getenv("SLACK_BOT_TOKEN")
SLACK_APP_TOKEN = os.getenv("SLACK_APP_TOKEN")
SLACK_SIGNING_KEY = os.getenv("SLACK_SIGNING_KEY")
SLACK_FORWARD_USER = os.getenv("SLACK_FORWARD_USER")
DISCORD_FORWARD_CHANNEL_ID = os.getenv("DISCORD_FORWARD_CHANNEL_ID")

if (
not DISCORD_TOKEN
or not SLACK_BOT_TOKEN
or not SLACK_APP_TOKEN
or not SLACK_SIGNING_KEY
or not SLACK_FORWARD_USER
or not DISCORD_FORWARD_CHANNEL_ID
):
log.fatal(
"DISCORD_TOKEN, SLACK_BOT_TOKEN, SLACK_APP_TOKEN, SLACK_SIGNING_KEY, SLACK_FORWARD_USER and DISCORD_FORWARD_CHANNEL_ID must be set"
"DISCORD_TOKEN, SLACK_BOT_TOKEN, SLACK_APP_TOKEN, SLACK_SIGNING_KEY and DISCORD_FORWARD_CHANNEL_ID must be set"
)
sys.exit(1)

Expand Down
3 changes: 1 addition & 2 deletions somebot/slack_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@


class SomeSlackBot:
def __init__(self, bot_token: str, app_token: str, signing_key: str, message_queue: Queue, forward_user: str):
def __init__(self, bot_token: str, app_token: str, signing_key: str, message_queue: Queue):
self.message_queue = message_queue
self.forward_user = forward_user
self.app = App(token=bot_token, signing_secret=signing_key)
self.handler = SocketModeHandler(self.app, app_token)
self.client = WebClient(token=bot_token)
Expand Down

0 comments on commit 3b4f448

Please sign in to comment.