wop commited on
Commit
1a45034
1 Parent(s): 2673aa5

Update app.py

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