Fix missing et and add Makefile
This commit is contained in:
@ -23,7 +23,7 @@ cursor.execute('''
|
|||||||
conn.commit()
|
conn.commit()
|
||||||
|
|
||||||
# Initialize Slack app
|
# 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):
|
def update_message_count(user_id):
|
||||||
"""Increment the message count for the user in SQLite."""
|
"""Increment the message count for the user in SQLite."""
|
||||||
@ -55,5 +55,5 @@ def handle_message_events(event, say):
|
|||||||
|
|
||||||
# Start the bot
|
# Start the bot
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
handler = SocketModeHandler(app, os.environ("SLACK_APP_TOKEN"))
|
handler = SocketModeHandler(app, os.environ.get("SLACK_APP_TOKEN"))
|
||||||
handler.start()
|
handler.start()
|
||||||
|
|||||||
Reference in New Issue
Block a user