|
|
@ -139,8 +139,8 @@ async def role_menu(ctx):
|
|
|
|
# Send embed to #self-roles
|
|
|
|
# Send embed to #self-roles
|
|
|
|
await channel.send(embed=embed)
|
|
|
|
await channel.send(embed=embed)
|
|
|
|
|
|
|
|
|
|
|
|
except Exception as e:
|
|
|
|
except Exception as ex:
|
|
|
|
print(e)
|
|
|
|
print(ex)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Bot event for enabling roles to be added to users when they react to the embedded message
|
|
|
|
# Bot event for enabling roles to be added to users when they react to the embedded message
|
|
|
@ -175,8 +175,8 @@ async def on_raw_reaction_add(payload):
|
|
|
|
# Print to me that the role has been added
|
|
|
|
# Print to me that the role has been added
|
|
|
|
print("done")
|
|
|
|
print("done")
|
|
|
|
|
|
|
|
|
|
|
|
except Exception as e:
|
|
|
|
except Exception as ex:
|
|
|
|
print(e)
|
|
|
|
print(ex)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Bot event for enabling roles to be removed from users when they unreact to the embedded messaged
|
|
|
|
# Bot event for enabling roles to be removed from users when they unreact to the embedded messaged
|
|
|
@ -321,6 +321,7 @@ async def on_command_missing_user(ctx):
|
|
|
|
# Delete the message
|
|
|
|
# Delete the message
|
|
|
|
await message.delete()
|
|
|
|
await message.delete()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Run the bot, allowing it to come online
|
|
|
|
# Run the bot, allowing it to come online
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
client.run(API_TOKEN)
|
|
|
|
client.run(API_TOKEN)
|
|
|
|