lunarflu HF staff commited on
Commit
e5bca64
·
verified ·
1 Parent(s): d206842

move run_bot up

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -26,6 +26,10 @@ def generate_unique_string(length=6):
26
  return secrets.token_hex(length // 2)
27
 
28
 
 
 
 
 
29
  # commands ---------------------------------------------------------------------------------------------------------
30
  @bot.command()
31
  async def sendlink(ctx, user: discord.User):
@@ -106,7 +110,4 @@ with gr.Blocks() as demo:
106
 
107
  demo.launch()
108
 
109
- def run_bot():
110
- bot.run(DISCORD_TOKEN)
111
 
112
- threading.Thread(target=run_bot).start()
 
26
  return secrets.token_hex(length // 2)
27
 
28
 
29
+ def run_bot():
30
+ bot.run(DISCORD_TOKEN)
31
+
32
+ threading.Thread(target=run_bot).start()
33
  # commands ---------------------------------------------------------------------------------------------------------
34
  @bot.command()
35
  async def sendlink(ctx, user: discord.User):
 
110
 
111
  demo.launch()
112
 
 
 
113