added blacklist function to config
This commit is contained in:
parent
ffde5adf42
commit
9bfb72e494
|
@ -1708,6 +1708,9 @@ def config():
|
||||||
"ea" : [
|
"ea" : [
|
||||||
0000
|
0000
|
||||||
],
|
],
|
||||||
|
"blacklist" : [
|
||||||
|
0000
|
||||||
|
],
|
||||||
"prefix" : ["m;", "m!"],
|
"prefix" : ["m;", "m!"],
|
||||||
"simmadome_url" : "",
|
"simmadome_url" : "",
|
||||||
"soulscream channel id" : 0,
|
"soulscream channel id" : 0,
|
||||||
|
@ -1751,7 +1754,7 @@ async def on_reaction_add(reaction, user):
|
||||||
@client.event
|
@client.event
|
||||||
async def on_message(msg):
|
async def on_message(msg):
|
||||||
|
|
||||||
if msg.author == client.user or not msg.webhook_id is None:
|
if msg.author == client.user or not msg.webhook_id is None or msg.author.id in congfig()["blacklist"]:
|
||||||
return
|
return
|
||||||
|
|
||||||
command_b = False
|
command_b = False
|
||||||
|
|
Loading…
Reference in a new issue