aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Darth Delay <[email protected]>2019-02-05 20:37:49 +0100
committerGravatar Darth Delay <[email protected]>2019-02-05 20:37:49 +0100
commita49031552f2cddda7980848fe45e3588add6a796 (patch)
tree32736fa62448c2a7bc0092250c0d72615fc3c084
parentAdded lovecalculator.py as described in #96: (diff)
Add LoveCalculator as in #96
This love calculator uses two user-IDs, adds them together and takes the modulus of 100 from it. Invocation: .love @user1#0000 @user2#0000
-rw-r--r--bot/seasons/valentines/lovecalculator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/seasons/valentines/lovecalculator.py b/bot/seasons/valentines/lovecalculator.py
index fef8aba2..3387ec86 100644
--- a/bot/seasons/valentines/lovecalculator.py
+++ b/bot/seasons/valentines/lovecalculator.py
@@ -108,10 +108,10 @@ class LoveCalculator:
@love.error
async def love_error(self, ctx, error):
if isinstance(error, commands.MissingRequiredArgument):
- logger.info(f"Wrong usage by {ctx.message.author}: MissingRequiredArgument")
+ logger.info(f"{ctx.message.author}, /love: MissingRequiredArgument")
if isinstance(error, commands.BadArgument):
- logger.info(f"Username for /love, invoked by {ctx.message.author}, not found: BadArgument")
+ logger.info(f"{ctx.message.author} invoked /love with a non-existent username: BadArgument")
def setup(bot):