add small random factor to /beg command
@@ -545,12 +545,12 @@ 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, 1.5))
+ amount = 9 + math.ceil(math.log(db_user['emeralds']+1, 1.5)) + math.randint(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))
else:
- amount = 10 + math.ceil(math.log(db_user['emeralds']+1, 1.3))
+ amount = 9 + math.ceil(math.log(db_user['emeralds']+1, 1.3)) + math.randint(1, 5)
amount = random.randint(1, 4) if amount < 1 else amount
await self.bot.send(ctx, random.choice(self.d.begging['negative']).format(amount))
