Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import discord
2
  from discord.ext import commands
3
  import gradio as gr
 
4
 
5
  # 디스코드 봇 설정
6
  intents = discord.Intents.default()
@@ -57,9 +58,9 @@ iface = gr.Interface(
57
 
58
  if __name__ == "__main__":
59
  import threading
60
-
61
  def run_discord_bot():
62
- bot.run('MTIwMjIwMjQ2MjI0NTg3OTgxOA.GNSzQR.8dISEIMS1duO-0kzma8kOEzywjDePMFnorCBRs')
63
 
64
  discord_thread = threading.Thread(target=run_discord_bot)
65
  discord_thread.start()
 
1
  import discord
2
  from discord.ext import commands
3
  import gradio as gr
4
+ import os
5
 
6
  # 디스코드 봇 설정
7
  intents = discord.Intents.default()
 
58
 
59
  if __name__ == "__main__":
60
  import threading
61
+ token = os.environ['token']
62
  def run_discord_bot():
63
+ bot.run(token)
64
 
65
  discord_thread = threading.Thread(target=run_discord_bot)
66
  discord_thread.start()