Spaces:
Paused
Paused
Update app.py
Browse files
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
|
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 |
|