standarovskid commited on
Commit
5220aba
·
verified ·
1 Parent(s): b27beea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -61,16 +61,16 @@ async def main():
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
 
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