add multi lang support for beg command
@@ -576,7 +576,7 @@ class Econ(commands.Cog):
await self.db.balance_add(ctx.author.id, amount)
- await self.bot.send(ctx, random.choice(self.d.begging['positive']).format(f'{amount}{self.d.emojis.emerald}'))
+ await self.bot.send(ctx, random.choice(ctx.l.econ.beg.positive).format(f'{amount}{self.d.emojis.emerald}'))
else:
amount = 9 + math.ceil(math.log(db_user['emeralds']+1, 1.3)) + random.randint(1, 5)
@@ -590,7 +590,7 @@ class Econ(commands.Cog):
await self.db.balance_sub(ctx.author.id, amount)
- await self.bot.send(ctx, random.choice(self.d.begging['negative']).format(f'{amount}{self.d.emojis.emerald}'))
+ await self.bot.send(ctx, random.choice(ctx.l.econ.beg.negative).format(f'{amount}{self.d.emojis.emerald}'))
@commands.command(name='mine', aliases=['mein', 'eun'])
async def mine(self, ctx):
