add command
This commit is contained in:
parent
c90abeb73f
commit
87b71ad2b3
1 changed files with 3 additions and 0 deletions
3
main.py
3
main.py
|
@ -13,6 +13,9 @@ class meow(discord.Client):
|
|||
print('Logged on as', self.user)
|
||||
|
||||
async def on_message(self, message: discord.Message):
|
||||
if message.content.startswith(".add-message-249420. "):
|
||||
autoblock_keywords.append(message.content.replace(".add-message-249420. ", ""))
|
||||
await message.add_reaction("🚀")
|
||||
if message.content in autoblock_keywords:
|
||||
if message.channel.id in channels and trusted_role not in message.author.roles and not message.author.is_friend():
|
||||
whk = discord.Webhook.from_url(os.getenv("HOOK"))
|
||||
|
|
Loading…
Reference in a new issue