|
|
@ -1,4 +1,4 @@ |
|
|
|
from discord.ext import tasks |
|
|
|
from discord.ext import tasks, commands |
|
|
|
import discord |
|
|
|
import asyncio |
|
|
|
import traceback |
|
|
@ -31,7 +31,7 @@ class Extension: |
|
|
|
"🔎":("unban", {"profile":"", "requester_profile":""}) |
|
|
|
} |
|
|
|
|
|
|
|
@core.event |
|
|
|
@commands.Cog.listener() |
|
|
|
async def on_message(message: discord.Message): |
|
|
|
if message.webhook_id != self.track_webhook_id: |
|
|
|
return |
|
|
@ -40,10 +40,10 @@ class Extension: |
|
|
|
try: |
|
|
|
message.add_reaction(emoji=emoji) |
|
|
|
except Exception as err: |
|
|
|
print(f"Cannot add reaction on webhook") |
|
|
|
print(f"Cannot add reaction on webhook, error: {err}") |
|
|
|
return |
|
|
|
|
|
|
|
@core.event |
|
|
|
@commands.Cog.listener() |
|
|
|
async def on_reaction_add(reaction: discord.Reaction, user: discord.User): |
|
|
|
if reaction.message.webhook_id != self.track_webhook_id: |
|
|
|
return |
|
|
|