Skip to content

Instantly share code, notes, and snippets.

@SkyLeite
Created July 2, 2016 17:08
Show Gist options
  • Select an option

  • Save SkyLeite/b3e33e3e89ba49ae38af49e9cc6c2eeb to your computer and use it in GitHub Desktop.

Select an option

Save SkyLeite/b3e33e3e89ba49ae38af49e9cc6c2eeb to your computer and use it in GitHub Desktop.
admin = 'False'
if message.content == '!eq enable':
for item in message.author.roles:
if item.name == "Administrator":
await addEQChannel(message, client)
admin = 'True'
if admin == 'False':
await client.send_message(message.channel, "You need the 'Administrator' role to do that.")
elif message.content == '!eq disable':
for item in message.author.roles:
if item.name == "Administrator":
await removeEQChannel(message, client)
admin = 'True'
if admin == 'False':
await client.send_message(message.channel, "You need the 'Administrator' role to do that.")
else:
await client.send_message(message.channel, "Welcome to Weeb Bot's Emergency Quest Alert! To get started, please type !eq enable on the channel you want EQs to appear. Please keep in mind you need the 'Administrator' role to do that.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment