Cleanup is only allowed in the test channel

This commit is contained in:
Luke Robles 2017-09-30 15:53:31 -07:00
parent 64f498d229
commit 9c97460ff2

View File

@ -80,7 +80,7 @@ async def on_message(message):
)
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')
return