This cog is very simple. User types /birthday <month> <day> [year] (where year is optional) and will store this data in the database.
Either through a timer, scheduler, etc etc, when SockBot knows that today is a user's birthday, it will make a small announcement of it in a configurable channel. If the user decided not to include year, just say it's their birthday. If year is included, include their new age with the congratulations.
Some optional thoughts/ideas:
- Have SockBot DM the user instead of announcing in the channel.
- Have a server "Birthday" role that will be displayed on the right-hand side of Discord for all to see (for the day).
- Add some kind of long cooldown/ratelimit for this command after it is ran twice (in case they messed up the first time). Ideally, it should be something like 1-12 months.
- Maybe even a subcommand,
/birthday list [discord.Member]: if member not supplied, lists the user's birthday, otherwise, will list the member's birthday (if stored).
This cog is very simple. User types
/birthday <month> <day> [year](whereyearis optional) and will store this data in the database.Either through a timer, scheduler, etc etc, when SockBot knows that today is a user's birthday, it will make a small announcement of it in a configurable channel. If the user decided not to include
year, just say it's their birthday. Ifyearis included, include their new age with the congratulations.Some optional thoughts/ideas:
/birthday list [discord.Member]: if member not supplied, lists the user's birthday, otherwise, will list the member's birthday (if stored).