i may be stupid.

pull/1/head
Matt C 3 years ago
parent 84c010eb42
commit 75fb452a98

@ -8,13 +8,14 @@ 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
if count != None:
distrohops += count
with open("miku_distrohops.txt", "w") as f:
f.write(str(distrohops))

Loading…
Cancel
Save