added ignore list

This commit is contained in:
christian 2021-08-12 18:25:16 +02:00
parent 8bed22fcdc
commit 00ab8089b9

View File

@ -5,6 +5,7 @@ from settings import token
import datetime
client = discord.Client()
ignore_list = []
#shit api. got switched like 1 year ago so like every single discusison about it is outdated.
def get_suggestion_type(msg):
@ -33,6 +34,10 @@ def get_suggestion_type(msg):
async def on_message(message):
if message.author.bot:
return
if message.author.id in ignore_list:
msg = f'{message.author.name} Your suggestion was ignored because you made too many shitty suggestions already. Do not post in this channel anymore.'
await message.channel.send()
return
if message.channel.name == 'suggestion-box': #suggestion-box
channel = client.get_channel(872925751295504476) #872925751295504476
message_content = message.content