| Commit message (Collapse) | Author | Age | Lines |
| |\
| |
| |
| |
| | |
added help message for .savethedate and edited the error_message for cooldown error
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| | |
1)Added a help text to .savethedate
2)Edited the error message for cooldowns so that it shows not only seconds remaining but also minutes(if cooldowntime>60 seconds)
|
| |\ \
| | |
| | | |
Add command .partnerzodiac
|
| | | | |
|
| | | | |
|
| | | | |
|
| | |/ |
|
| |\ \
| | |
| | | |
Add .who_is_valentine and .valentine_facts
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
A few things have been changed to address the changes listed under PR #122:
- Changed the color tag of the embed from both commands from
discord.Color.dark_magenta() to bots.constants.Colours.pink
- Renamed valentine_facts to valentine_fact
These changes are needed to fit the projects standards.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Closes #102
This pull request adds the commands who_is_valentine and valentine_facts.
The who_is_valentine command sends information about Saint Valentine of
Terni to the channel the command has been called in. This is done by making
use of the valentine_facts.json file's 'whois' attribute, which has
all the information stored in it.
The valentine_facts command sends a random fact with a random title to the
channel the command has been called in. This is done by making use of the
of the valentine_facts.json file's 'titles' and 'text' attribute, in which
both, the information for the titles and the facts are stored in.
Both commands do have docstrings, which explain what the command does in
an easy manner.
At the moment, there's a really sparse amount of facts available. I seek
to add a lot more in the near future.
|
| |\ \ \
| | | |
| | | | |
Add Terning Emoji to Constants, Update Fun Cog
|
| | | |/
| |/| |
|
| |\ \ \
| |/ /
|/| | |
Refine love calculator command
|
| | | | |
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | | |
One of the dependencies seems to install `typing` from PyPi for some
reason, which confused PyCharm's import optimizer.
|
| | | | |
|
| | | | |
|
| |\ \ \
| | | |
| | | | |
Readded fun.py file to evergreen and added roll command.
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
once implemented.
|
| | | | | |
|
| | | | | |
|
| |\ \ \ \
| |_|/ /
|/| | | |
added command .romancemovie
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
for KeyError
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | |/ / |
|
| |\ \ \
| | | |
| | | | |
Fix LoveCalculator 0% bug
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| |\| | |
| |/ /
|/| | |
Add LoveCalculator as described in #96
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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'
|
| | |
| |
| |
| |
| |
| |
| | |
This love calculator uses two user-IDs, adds them together and takes the
modulus of 100 from it.
Invocation: .love @user1#0000 @user2#0000
|
| | |
| |
| |
| |
| |
| |
| | |
This love calculator uses two user-IDs, adds them together and takes the
modulus of 100 from it.
Invocation: .love @user1#0000 @user2#0000
|
| | |
| |
| |
| |
| |
| | |
- 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
|
| | |
| |
| |
| |
| |
| | |
- 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
|