standarovskid commited on
Commit
d9dba97
·
verified ·
1 Parent(s): 0af8f16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -54,6 +54,15 @@ async def main():
54
  job = client.submit(prompt, api_name="/slow_echo")
55
  wait([job])
56
  await ctx.send(arg)
 
 
 
 
 
 
 
 
 
57
 
58
  # running in thread
59
  def run_bot():
 
54
  job = client.submit(prompt, api_name="/slow_echo")
55
  wait([job])
56
  await ctx.send(arg)
57
+
58
+ @bot.event
59
+ async def on_message(message):
60
+ try:
61
+ if not message.author.bot:
62
+ await bot.process_commands(message)
63
+
64
+ except Exception as e:
65
+ print(f"Error: {e}")
66
 
67
  # running in thread
68
  def run_bot():