ufosc / albot-and-albota

Discord bots written in Python
MIT License
7 stars 9 forks source link

Announcements Enrollment #138

Open logandgsmith opened 4 years ago

logandgsmith commented 4 years ago

Now that we've created an Announcements role that club members can subscribe to, we need to make a simple command for ALBot that allows members to enroll/de-enroll from it. There are many solutions for this issue.

Possible solutions:

Have ALBot post a message in the rules channel (or possibly a new channel... subscriptions?) that you can react to to join

Use the normal invocation to join Announcements role

hjarrell commented 4 years ago

Lets go with just !join announcements or !announcements for now. So add a feature for the bot to give a user the announcement role when they run that command. Some resources: https://discordpy.readthedocs.io/en/latest/ext/commands/commands.html

https://discordpy.readthedocs.io/en/latest/api.html?highlight=role#discord.Role

https://github.com/ufosc/albot-and-albota/blob/develop/cogs/projects.py#L63