This commit is contained in:
2024-09-28 17:22:31 -04:00
parent 28456c07ee
commit 397305fcdc
3 changed files with 16 additions and 1 deletions

View File

@@ -15,10 +15,13 @@ To install this cog, follow these steps:
1. Ensure you have Red-DiscordBot V3 installed.
2. Add the repository to your bot:
```
[p]repo add Pac-cogs https://github.com/pacnpal/Pac-cogs
```
3. Install the cog:
```
[p]cog install Pac-cogs birthday
```
@@ -26,6 +29,7 @@ To install this cog, follow these steps:
## Usage
After installation, load the cog with:
```
[p]load birthday
```
@@ -35,10 +39,13 @@ After installation, load the cog with:
Before the cog can be used, an admin needs to set it up:
1. Set the birthday role:
```
[p]birthdayset role @BirthdayRole
```
2. Add roles that can use the birthday command:
```
[p]birthdayset addrole @AllowedRole
```
@@ -46,6 +53,7 @@ Before the cog can be used, an admin needs to set it up:
### Using the Birthday Command
Users with allowed roles can assign the birthday role to a member:
```
[p]birthday @User
```

7
birthday/__init__.py Normal file
View File

@@ -0,0 +1,7 @@
from .birthday import Birthday
__red_end_user_data_statement__ = "This allows users with the set roles to give the birthday role to users until the end of the day."
def setup(bot):
bot.add_cog(Birthday(bot))