wop commited on
Commit
2673aa5
·
verified ·
1 Parent(s): c6b9f53

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -48,6 +48,7 @@ def truncate_response(response: str) -> str:
48
 
49
 
50
  intents = discord.Intents.all()
 
51
  bot = commands.Bot(command_prefix="$", intents=intents)
52
 
53
 
@@ -73,8 +74,7 @@ def run_bot():
73
  else:
74
  bot.run(DISCORD_TOKEN)
75
 
76
-
77
- threading.Thread(target=run_bot).start()
78
 
79
  event.wait()
80
 
 
48
 
49
 
50
  intents = discord.Intents.all()
51
+ global bot
52
  bot = commands.Bot(command_prefix="$", intents=intents)
53
 
54
 
 
74
  else:
75
  bot.run(DISCORD_TOKEN)
76
 
77
+ threading.Thread(target=run_bot, args=(bot,)).start()
 
78
 
79
  event.wait()
80