add beg command
@@ -564,6 +564,20 @@ class Econ(commands.Cog):
else:
await self.bot.send(ctx, 'Tie! Maybe Villager Bot will steal your emeralds anyways...')
+ @commands.command(name='beg')
+ async def beg(self, ctx):
+ db_user = await self.db.fetch_user[]
+
+ if random.choice([True, True, True, True, True, False]):
+ amount = 10 + math.ceil(math.log(db_user['emeralds'], 1.5))
+ amount = random.randint(1, 4) if amount < 1 else amount
+
+ await self.bot.send(ctx, random.choice(self.d.begging_sayings['positive']).format(amount))
+ else:
+ amount = 10 + math.ceil(math.log(db_user['emeralds'], 1.3))
+ amount = random.randint(1, 4) if amount < 1 else amount
+
+ await self.bot.send(ctx, random.choice(self.d.begging_sayings['negative']).format(amount))
def setup(bot):
bot.add_cog(Econ(bot))
