aboutsummaryrefslogtreecommitdiffstats
path: root/bot/bot.py (unfollow)
Commit message (Collapse)AuthorLines
2019-02-12Update LoveCalculator to address requested changesGravatar Darth Delay-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
2019-02-11Update LoveCalculator as in #100Gravatar Darth Delay-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'
2019-02-05Add LoveCalculator as in #96Gravatar Darth Delay-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
2019-02-05Add LoveCalculator as in #96Gravatar Darth Delay-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
2019-02-05Added lovecalculator.py as described in #96:Gravatar Darth Delay-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
2019-02-05Added lovecalculator.py as described in #96:Gravatar Darth Delay-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