Fix gib hug (Issue #3)

This commit is contained in:
Helixu 2021-12-17 20:48:07 +00:00
parent 58528f657a
commit 76d49a4597

7
bot.py
View file

@ -53,9 +53,10 @@ async def fox(ctx):
@bot.command(brief="give someone a cuddle") @bot.command(brief="give someone a cuddle")
async def hug(ctx, *, name=None): async def hug(ctx, *, name=None):
if not name: if not name:
return await ctx.send("Foxtrot hugs "+ctx.author.name+"! :3") return await ctx.send("Foxtrot hugs "+ctx.author.name.replace("@", "")+"! :3")
await ctx.send(ctx.author.name+f" hugs {name}! :3") nameFixed = name.replace("@everyone", "everyone").replace("@here", "everyone here")
await ctx.send(ctx.author.name+f" hugs {nameFixed}! :3")
@bot.command(brief="gives the top.gg vote link") @bot.command(brief="gives the top.gg vote link")
async def vote(ctx): async def vote(ctx):