From 75fb452a98c34164e20809a6b12838ffe6ba9863 Mon Sep 17 00:00:00 2001 From: Matt C Date: Tue, 25 Jan 2022 23:22:46 -0500 Subject: [PATCH] i may be stupid. --- bot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index cd11f0a..3174db9 100644 --- a/bot.py +++ b/bot.py @@ -8,14 +8,15 @@ bot.add_cog(Packages(bot)) @bot.command() -async def distrohop(self, ctx, *, count=0): +async def distrohop(self, ctx, *, count=None): """Count another miku distrohop""" if os.path.exists("miku_distrohops.txt"): with open("miku_distrohops.txt", "r") as f: distrohops = int(f.read()) else: distrohops = 0 - distrohops += count + if count != None: + distrohops += count with open("miku_distrohops.txt", "w") as f: f.write(str(distrohops)) await ctx.send("Miku distrohops: " + str(distrohops))