fix MathDomainError which occurred in the /beg command
@@ -545,7 +545,7 @@ class Econ(commands.Cog):
db_user = await self.db.fetch_user(ctx.author.id)
if random.choice([True, True, True, True, True, False]):
- amount = 10 + math.ceil(math.log(db_user['emeralds'], 1.5))
+ amount = 10 + math.ceil(math.log(db_user['emeralds']+1, 1.5))
amount = random.randint(1, 4) if amount < 1 else amount
await self.bot.send(ctx, random.choice(self.d.begging['positive']).format(amount))
