Browse Source

husbano and spousu handling added to the waifu rate command.

tags/v1.6.0
Roxie Gibson 6 years ago
parent
commit
45afdc413e
2 changed files with 14 additions and 4 deletions
  1. +2
    -0
      README.md
  2. +12
    -4
      Roxbot/cogs/fun.py

+ 2
- 0
README.md View File



#### v1.6.0 #### v1.6.0
###### New Features ###### New Features

###### Minor Changes ###### Minor Changes
- Logging is now easier internally. - Logging is now easier internally.
- The subreddit command has logging. Only when it is being directly invoked and not when an inbuilt command is being used. - The subreddit command has logging. Only when it is being directly invoked and not when an inbuilt command is being used.
- waifurate command can now do husbando and spousu rates as well.
###### Bug Fixes ###### Bug Fixes


#### v1.5.1 #### v1.5.1

+ 12
- 4
Roxbot/cogs/fun.py View File

return await ctx.send("You didn't mention someone for me to hug") return await ctx.send("You didn't mention someone for me to hug")
return await ctx.send(":blush: *{} hugs {}*".format(self.bot.user.name, user.name)) return await ctx.send(":blush: *{} hugs {}*".format(self.bot.user.name, user.name))


@bot.command(aliases=["wf"])
@bot.command(aliases=["wf", "wr", "husbandorate", "hr", "spousurate", "sr"])
async def waifurate(self, ctx): async def waifurate(self, ctx):
""" """
Rates the mentioned waifu(s)
Rates the mentioned waifu(s). husbando/spousurate also work.
Usage: Usage:
{command_prefix}waifurate @user#9999 {command_prefix}waifurate @user#9999
This command is in dedicated to Hannah, who suggested this command to me. I hope she's out there, somewhere, getting her waifus rated in peace.
""" """
mentions = ctx.message.mentions mentions = ctx.message.mentions
if ctx.invoked_with in ["hr", "husbandorate"]:
waifu = "husbando"
elif ctx.invoked_with in ["sr", "spousurate"]:
waifu = "spousu"
else:
waifu = "waifu"

if not mentions: if not mentions:
return await ctx.send("You didn't mention anyone for me to rate.", delete_after=10) return await ctx.send("You didn't mention anyone for me to rate.", delete_after=10)


emoji = ":heart_eyes:" emoji = ":heart_eyes:"


if len(mentions) > 1: if len(mentions) > 1:
return await ctx.send("Oh poly waifu rating? :smirk: Your combined waifu rating is {}/10. {}".format(rating, emoji))
return await ctx.send("Oh poly {} rating? :smirk: Your combined waifu rating is {}/10. {}".format(waifu, rating, emoji))
else: else:
return await ctx.send("Oh that's your waifu? I rate them a {}/10. {}".format(rating, emoji))
return await ctx.send("Oh that's your {}? I rate them a {}/10. {}".format(waifu, rating, emoji))


@bot.command(aliases=["cf"]) @bot.command(aliases=["cf"])
async def coinflip(self, ctx): async def coinflip(self, ctx):

Loading…
Cancel
Save