Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -40,7 +40,7 @@ async def main():
|
|
| 40 |
print(f"Logged in as {bot.user} (ID: {bot.user.id})")
|
| 41 |
synced = await bot.tree.sync()
|
| 42 |
print(f"Synced commands: {', '.join([s.name for s in synced])}.")
|
| 43 |
-
event.set()
|
| 44 |
print("------")
|
| 45 |
|
| 46 |
|
|
@@ -61,16 +61,16 @@ async def main():
|
|
| 61 |
except Exception as e:
|
| 62 |
return f"Erreur:{e}"
|
| 63 |
|
| 64 |
-
@bot.event
|
| 65 |
-
|
| 66 |
# 忽略自己的消息
|
| 67 |
-
|
| 68 |
-
|
| 69 |
|
| 70 |
#if message.content.startswith("/echo"):
|
| 71 |
#user_input = message.content[len("/echo "):]
|
| 72 |
-
|
| 73 |
-
|
| 74 |
#await message.channel.send(result)
|
| 75 |
|
| 76 |
# Start keepalive server and bot
|
|
|
|
| 40 |
print(f"Logged in as {bot.user} (ID: {bot.user.id})")
|
| 41 |
synced = await bot.tree.sync()
|
| 42 |
print(f"Synced commands: {', '.join([s.name for s in synced])}.")
|
| 43 |
+
#event.set()
|
| 44 |
print("------")
|
| 45 |
|
| 46 |
|
|
|
|
| 61 |
except Exception as e:
|
| 62 |
return f"Erreur:{e}"
|
| 63 |
|
| 64 |
+
#@bot.event
|
| 65 |
+
# async def on_message(message):
|
| 66 |
# 忽略自己的消息
|
| 67 |
+
# if message.author == bot.user:
|
| 68 |
+
# return
|
| 69 |
|
| 70 |
#if message.content.startswith("/echo"):
|
| 71 |
#user_input = message.content[len("/echo "):]
|
| 72 |
+
# result = call_huggingface_space(user_input)
|
| 73 |
+
# await message.channel.send(f"yeah right lmfao 🥀🥀")
|
| 74 |
#await message.channel.send(result)
|
| 75 |
|
| 76 |
# Start keepalive server and bot
|