From 3227bf3a0fa592b3a9d9e49187165e522ef8102b Mon Sep 17 00:00:00 2001 From: mloe Date: Thu, 20 Oct 2022 00:00:15 +0200 Subject: [PATCH] Added times command --- bot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bot.py b/bot.py index 95824c3..7226912 100644 --- a/bot.py +++ b/bot.py @@ -32,6 +32,10 @@ async def add(ctx, left: int, right: int): async def sub(ctx, left: int, right: int): await ctx.send(left - right) +@bot.command() +async def times(ctx, left: int, right: int): + await ctx.send(left * right) + @bot.command() async def update(ctx): subprocess.Popen('./update.sh')