Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -103,12 +103,9 @@ class MyClient(commands.Bot):
|
|
| 103 |
return
|
| 104 |
if not self.is_message_in_specific_channel(message):
|
| 105 |
return
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
await self.send_long_message(message.channel, response)
|
| 109 |
-
|
| 110 |
|
| 111 |
-
|
| 112 |
self.is_processing = True
|
| 113 |
try:
|
| 114 |
response = await generate_response(message)
|
|
|
|
| 103 |
return
|
| 104 |
if not self.is_message_in_specific_channel(message):
|
| 105 |
return
|
| 106 |
+
if self.is_processing:
|
| 107 |
+
return
|
|
|
|
|
|
|
| 108 |
|
|
|
|
| 109 |
self.is_processing = True
|
| 110 |
try:
|
| 111 |
response = await generate_response(message)
|