From 22885819036808efde143c506d352b6c3004a1bc Mon Sep 17 00:00:00 2001 From: Helixu Date: Tue, 23 Nov 2021 22:51:11 +0000 Subject: [PATCH] hugs for days --- bot.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index f6930e9..68e1d1a 100644 --- a/bot.py +++ b/bot.py @@ -1,4 +1,4 @@ - + import discord from discord import File, Streaming, Game, Activity, ActivityType, Status @@ -41,7 +41,12 @@ async def fox(ctx): async with session.get('https://foxrudor.de/') as resp: file = File(io.BytesIO(await resp.read()),filename='fox.jpg') await ctx.send(random.choice(foxmsgs),file=file) - +@bot.command(brief="give someone a cuddle") +async def hug(ctx, *, name=None): + if not name: + return await ctx.send("Foxtrot hugs "+ctx.author.name+"! :3") + await ctx.send(ctx.author.name+f" hugs {name}! :3") + @bot.command(brief="cattttttttt") async def cat(ctx): async with aiohttp.ClientSession() as session: