Update app.py
#1
by
chohj06ms
- opened
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(
|
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()
|