aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/valentines/lovecalculator.py (follow)
Commit message (Collapse)AuthorAgeLines
* Move Valentines to Holidays folderGravatar Janine vN2021-09-04-99/+0
| | | | | Moves the valentine's day features to the holidays folders. Corrected the paths to reflect the folder moves.
* Don't role check if running lovecalc on yourselfGravatar Chris Lovering2021-08-12-7/+11
| | | | | | This skips the role check if the author is running the love calc command on themselves. We still want to check the the user running against has the role, along with if the author is running it against 2 other people. i have also included info on how to get the lovefest role in the error embed.
* Give lovefest unsub info in lovecalc footerGravatar Chris Lovering2021-08-12-1/+2
|
* Update love calculator error output to be consistent with other role check failsGravatar ChrisJL2021-08-10-1/+1
| | | Co-authored-by: Matteo Bertucci <[email protected]>
* Remove unneeded checks in love calculator commandGravatar Chris Lovering2021-08-10-13/+3
| | | | Now that we don't allow arbitrary strings, we can simplify the input validation/modification we do.
* Update love calculator docstring to reflect new behaviourGravatar Chris Lovering2021-08-10-8/+6
| | | | Since we update how the command behaves, by not allow arbitrary stings, and being symmetrical, we should reflect this in the docstring.
* Sort the members before calculating a love scoreGravatar Chris Lovering2021-08-10-1/+2
| | | | This ensures the same result for same input, regardless of order
* Require both members used in love calculator have opt-ed into lovefestGravatar Chris Lovering2021-08-10-3/+9
| | | | This ensure that only uses that have opted into the love fest event can actually be used as part of this command.
* Add February in_month check to love calculator commandGravatar Chris Lovering2021-08-10-0/+3
| | | | This ensure the valentines themed command can only be ran during the valentines season.
* chore: Use pathlib.Path.read_text & write_text over openGravatar ToxicKidz2021-05-13-3/+2
|
* chore: Apply anand's suggested changesGravatar ToxicKidz2021-05-07-1/+1
|
* chore: Replace the remaining double quotes with double quotesGravatar ToxicKidz2021-05-04-6/+6
|
* fix: Pass bot only when __init__ is definedGravatar ToxicKidz2021-05-04-1/+1
|
* chore: Clean Up the Valentines SeasonGravatar ToxicKidz2021-05-03-5/+4
| | | | | | - Change commands.Bot type hints to bot.Bot - Remove the setting of Cog.bot if it isn't being used - Change ctx.author -> ctx.message.author
* If whom is None, take the user as whomGravatar Shivansh-0072021-02-05-3/+6
|
* Remove code that requires intents.member set TrueGravatar Shivansh-0072021-02-05-9/+1
|
* 5/19 - ext - set upen files encoding to utf8 for botsGravatar jodth072020-05-19-1/+1
|
* Deseasonify: log in `add_cog` rather than in each `setup`Gravatar kwzrd2020-03-28-1/+0
| | | | | | | | | | | | The previous system required each extension's `setup` func to log that the cog was loaded. This leads to inconsistent messages all trying to convey the same thing, variable logger names in the output file are difficult to read, and several extensions were not logging at all. By logging directly in the `add_cog` method, we reduce code repetition, ensure consistent format, and remove the responsibility to remember that a log should be made.
* Deseasonify: rename `seasons` pkg to `exts`Gravatar kwzrd2020-03-28-0/+104
It is believed that this is now a more logical name for the package, as extensions no longer bind to seasons. Internally, packages are still grouped into seasonal sub-packages. There are quite a few, and it makes sense to group them by a common theme that inspired their functionality.