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))