Fix missing et and add Makefile

This commit is contained in:
2025-02-07 18:16:42 -05:00
parent 6c6d7093b6
commit 44da4e040d
2 changed files with 4 additions and 2 deletions

View File

@ -23,7 +23,7 @@ cursor.execute('''
conn.commit()
# Initialize Slack app
app = App(token=os.environ("SLACK_BOT_TOKEN"))
app = App(token=os.environ.get("SLACK_BOT_TOKEN"))
def update_message_count(user_id):
"""Increment the message count for the user in SQLite."""
@ -55,5 +55,5 @@ def handle_message_events(event, say):
# Start the bot
if __name__ == "__main__":
handler = SocketModeHandler(app, os.environ("SLACK_APP_TOKEN"))
handler = SocketModeHandler(app, os.environ.get("SLACK_APP_TOKEN"))
handler.start()