aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| | * | | | | createdGravatar abdullah oday2019-02-14-1/+3
| | | | | | |
| | * | | | | createdGravatar abdullah oday2019-02-14-0/+59
| | |/ / / /
| * | | | | Merge pull request #117 from darthdelay/lovecalculatorGravatar Sebastiaan Zeeff2019-02-15-3/+3
| |\ \ \ \ \ | | | | | | | | | | | | | | Fix LoveCalculator 0% bug
| | * | | | | Fix LoveCalculator 0% bugGravatar Darth Delay2019-02-15-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Recently a test of the .love command revealed an unintentional reaction when 100% are reached. In previous versions this command had used a gigantic conditional block, checking for the current percentage given by the love_meter formula. When reaching 0 (meaning that the UserID's evenly divided with 100) it would automatically convert that 0 to 100. A big mistake from my side back then. This has been fixed with these changes. By quickly modifying the formula to use a mod 101 instead of a mod 100, we get an accurate percentage, ranging from 0-100% instead of 0-99%. love_matches.json has also been fixed to address these changes, meaning that the lowest entry now actually is 0 and the highest 100. TL;DR: -> Edited love_meter formula to calculate mod 101 instead of mod 100 -> Edited lowest and highest entry in love_matches.json to be 0 and 100
| * | | | | | Merge pull request #100 from darthdelay/lovecalculatorGravatar Jeremiah Boby2019-02-14-0/+129
| |\| | | | | | | |/ / / / | |/| | | | Add LoveCalculator as described in #96
| | * | | | Update LoveCalculator to address requested changesGravatar Darth Delay2019-02-12-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit is addressing the new change requests on #100 Here's a list of what has been changed: -> Moved `LOVE_DATA` and `LOVE_LEVELS` out of the LoveCalculator class: This change has been made, so that the **love_matches.json** file does not have to be loaded every time someone uses `.love`. Now the file is loaded once when the cog is loaded. Requested by: Scragly -> Moved the Member converter to the function parameters: I didn't know that this works. It's good to learn something new. This also removes the `else` block, as it is no longer needed. Requested by: Scragly -> Removed the Roles instance: Before these changes, an instance of `Roles` has been created inside the if block: `ctx.guild.get_role(Roles().helpers).members`. This instance has now been removed as it is unnecessary Requested by: Scragly -> Adjusted the embed's description's string length: This project is aimed at 100 character lines in the future. The descrip- tion is way longer, so its string has been split up to fit that specifi- cation. Requested by: Scragly
| | * | | | Update LoveCalculator as in #100Gravatar Darth Delay2019-02-11-90/+100
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updated the LoveCalculator cog due to changes being requested + Added love_matches.json for dialogue storage + Added docstrings to LoveCalculator and the love command + Added DRY code + Added 5 seconds of cooldown to the command per user + Can now be invoked without a second name - Removed error handler 'love_error'
| | * | | Add LoveCalculator as in #96Gravatar Darth Delay2019-02-05-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This love calculator uses two user-IDs, adds them together and takes the modulus of 100 from it. Invocation: .love @user1#0000 @user2#0000
| | * | | Add LoveCalculator as in #96Gravatar Darth Delay2019-02-05-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This love calculator uses two user-IDs, adds them together and takes the modulus of 100 from it. Invocation: .love @user1#0000 @user2#0000
| | * | | Added lovecalculator.py as described in #96:Gravatar Darth Delay2019-02-05-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Includes LoveCalculator and somewhat of an error handler - Awaits two mentions like so: /love @user1#0000 @user2#0000 - Sends embed to the channel where /love has been called
| | * | | Added lovecalculator.py as described in #96:Gravatar Darth Delay2019-02-05-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Includes LoveCalculator and somewhat of an error handler - Awaits two mentions like so: /love @user1#0000 @user2#0000 - Sends embed to the channel where /love has been called
| | * | | Added lovecalculator.py as described in #96:Gravatar Darth Delay2019-02-05-0/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Includes LoveCalculator and somewhat of an error handler - Awaits two mentions like so: /love @user1#0000 @user2#0000 - Sends embed to the channel where /love has been called
| * | | | Merge pull request #106 from python-discord/readme-updateGravatar scragly2019-02-11-2/+6
| |\ \ \ \ | | |_|/ / | |/| | | Mention CONTRIBUTING.md, fix missing branch step.
| | * | | Mention CONTRIBUTING.md, fix missing branch step.Gravatar Scragly2019-02-09-2/+6
| |/ / /
| * | | Merge pull request #105 from RohanJnr/savethedate_icemanGravatar scragly2019-02-09-0/+169
|/| | | | | | | | | | | | | | | | | | | Added the command savethedate. Co-authored-by: null <[email protected]>
| * | | fixed the issuesGravatar Rohan2019-02-08-3/+5
| | | |
| * | | added a color called bright_green to the colors class.gave the variables ↵Gravatar Rohan2019-02-07-9/+11
| | | | | | | | | | | | | | | | more descriptive names.
| * | | fixed linter errorsGravatar Rohan2019-02-07-1/+1
| | | |
| * | | edited the emoji listGravatar Rohan2019-02-07-1/+1
| | | |
| * | | fixed linter issuesGravatar Rohan2019-02-07-2/+3
| | | |
| * | | I have finished working on the issue #101 SaveTheDate command.i have added ↵Gravatar Rohan2019-02-07-0/+164
|/ / / | | | | | | | | | around 30 date ideas(using json file to store data).We can add more if needed later.
* | | Merge pull request #99 from python-discord/config-updateGravatar Leon Sandøy2019-02-06-85/+279
|\ \ \ | | | | | | | | Add Lovefest configuration, update project documents
| * | | Add precommit install instruction.Gravatar Scragly2019-02-06-0/+10
| | | |
| * | | Change Lovefest role IDGravatar sco12019-02-05-1/+1
| | | |
| * | | Add console steps, update pycharm steps and required env vars.Gravatar Scragly2019-02-06-84/+263
| | | |
| * | | Add Lovefest configuration, update project documentsGravatar sco12019-02-05-2/+7
| |/ / | | | | | | | | | | | | | | | | | | Add Lovefest role & channel IDs to bot constants Update environment variable name for seasonalbot (was hacktoberbot) Update Contributor doc to reference pipenv guide rather than the deprecated Seasonalbot GH wiki
* | | Merge pull request #94 from python-discord/precommitGravatar scragly2019-02-06-72/+182
|\ \ \ | |/ / |/| | | | | | | | Add precommit dev dependency
| * | Add precommit dev dependency and relockGravatar sco12019-01-19-72/+182
| | |
* | | Merge pull request #95 from python-discord/add-valentines-seasonGravatar scragly2019-02-05-0/+20
|\ \ \ | |/ / |/| | | | | | | | Add valentines season
| * | Add valentines seasonGravatar Joseph Banks2019-02-03-0/+20
|/ /
* | Update Contributor docGravatar sco12019-01-19-9/+45
| |
* | Remove autodeploy via `pepper`.Gravatar Johannes Christ2019-01-02-9/+0
| |
* | Fixing error in advent of code countdown by removing datetime prefixesGravatar Joseph Banks2018-12-26-2/+2
| |
* | Merge pull request #92 from python-discord/fix-advent-of-code-countdownGravatar Joseph2018-12-26-1/+10
|\ \ | |/ |/| Fix advent of code countdown
| * Address flake8 complaintsGravatar Joseph Banks2018-12-26-1/+2
| |
| * Fix the grammar on the messageGravatar Joseph Banks2018-12-26-1/+1
| |
| * Address review commentsGravatar Joseph Banks2018-12-26-1/+4
| |
| * Add a notice to AoC countdown to find out if we are still in the advent of codeGravatar Joseph Banks2018-12-26-0/+4
| |
| * Fix is_in_advent() functionGravatar Joseph Banks2018-12-26-1/+2
|/
* Merge pull request #88 from scragly/si_2Gravatar Leon Sandøy2018-12-06-8/+35
|\ | | | | Send devlog notification on season load.
| * Fix comment typoGravatar Johannes Christ2018-12-06-1/+1
| | | | | | Co-Authored-By: scragly <[email protected]>
| * Send devlog message on season load.Gravatar Scragly2018-12-05-8/+35
| |
* | Merge pull request #89 from python-discord/lb-statsGravatar Leon Sandøy2018-12-06-3/+72
|\ \ | |/ |/| Private Leaderboard Daily Completion Statistics
| * Delete parenthesesGravatar sco12018-12-05-1/+1
| |
| * Fix leaderboard parsing regex to support twitter handlesGravatar sco12018-12-05-1/+1
| |
| * Add daily summary commandGravatar sco12018-12-05-6/+37
| |
| * Add daily summary statistics calculationGravatar sco12018-12-05-2/+40
|/ | | | Frame stats command Remove "stats" adjacent aliases for existing commands to avoid confusion
* Merge pull request #80 from scragly/season_improvementsGravatar Johannes Christ2018-12-04-92/+461
|\ | | | | Season Improvements
| * Use contextlib.suppress, remove unnecessary `u` prefix.Gravatar Scragly2018-12-04-11/+6
| |
| * Handle edit errors, tidy model and docsGravatar Scragly2018-12-03-65/+159
| |