Cleanup is only allowed in the test channel
This commit is contained in:
parent
1bfdaa8be7
commit
dfee44f829
@ -80,7 +80,7 @@ async def on_message(message):
|
|||||||
)
|
)
|
||||||
|
|
||||||
if message.content.startswith('!cleanup'):
|
if message.content.startswith('!cleanup'):
|
||||||
if not role_check.cleanup_permissions(message.author.roles):
|
if not role_check.cleanup_permissions(message.author.roles) or message.channel.id != '339510341459247106':
|
||||||
await client.send_message(message.channel, 'You cant do that')
|
await client.send_message(message.channel, 'You cant do that')
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user