added ignore list
This commit is contained in:
parent
13b29c49cd
commit
04e7d9f1a2
@ -5,6 +5,7 @@ from settings import token
|
|||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
client = discord.Client()
|
client = discord.Client()
|
||||||
|
ignore_list = []
|
||||||
#shit api. got switched like 1 year ago so like every single discusison about it is outdated.
|
#shit api. got switched like 1 year ago so like every single discusison about it is outdated.
|
||||||
|
|
||||||
def get_suggestion_type(msg):
|
def get_suggestion_type(msg):
|
||||||
@ -33,6 +34,10 @@ def get_suggestion_type(msg):
|
|||||||
async def on_message(message):
|
async def on_message(message):
|
||||||
if message.author.bot:
|
if message.author.bot:
|
||||||
return
|
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
|
if message.channel.name == 'suggestion-box': #suggestion-box
|
||||||
channel = client.get_channel(872925751295504476) #872925751295504476
|
channel = client.get_channel(872925751295504476) #872925751295504476
|
||||||
message_content = message.content
|
message_content = message.content
|
||||||
|
Loading…
Reference in New Issue
Block a user