Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ class MyClient(discord.Client):
|
|
38 |
subprocess.Popen(["python", "web.py"])
|
39 |
logging.info("Web.py server has been started.")
|
40 |
|
41 |
-
|
42 |
logging.debug(f"Received message from {message.author}: {message.content}")
|
43 |
if message.author == self.user:
|
44 |
return
|
@@ -56,6 +56,7 @@ class MyClient(discord.Client):
|
|
56 |
logging.error(f"Error processing message: {e}", exc_info=True)
|
57 |
finally:
|
58 |
self.is_processing = False
|
|
|
59 |
|
60 |
def is_message_in_specific_channel(self, message):
|
61 |
return message.channel.id == SPECIFIC_CHANNEL_ID or (
|
|
|
38 |
subprocess.Popen(["python", "web.py"])
|
39 |
logging.info("Web.py server has been started.")
|
40 |
|
41 |
+
async def on_message(self, message):
|
42 |
logging.debug(f"Received message from {message.author}: {message.content}")
|
43 |
if message.author == self.user:
|
44 |
return
|
|
|
56 |
logging.error(f"Error processing message: {e}", exc_info=True)
|
57 |
finally:
|
58 |
self.is_processing = False
|
59 |
+
|
60 |
|
61 |
def is_message_in_specific_channel(self, message):
|
62 |
return message.channel.id == SPECIFIC_CHANNEL_ID or (
|