add + finish honey command
@@ -798,6 +798,28 @@ class Econ(commands.Cog):
await self.bot.send(ctx, 'Either that isn\'t a potion, or it doesn\'t exist.')
+ @commands.command(name='harvesthoney', aliases=['honey'])
+ async def harvest_honey(self, ctx):
+ bees = await self.db.fetch_item(ctx.author.id, 'Jar Of Bees')
+ if bees is not None:
+ bees = bees['item_amount']
+ else:
+ bees = 0
+
+ if bees > 1024: bees = 1024
+
+ if bees < 100:
+ await self.bot.send(ctx, random.choice(self.d.honey.not_viable))
+ ctx.command.reset_cooldown(ctx)
+ return
+
+ jars = bees - random.randint(math.ceil(bees / 6), math.ceil(bees / 2))
+ await self.db.add_item(ctx.author.id, 'Honey Jar', 1, jars)
+ await self.bot.send(ctx, random.choice(self.d.honey.honey))
+
+ if random.choice([False]*3 + [True]):
+ bees_lost = random.randint(math.ceil(bees / 75), math.ceil(bees / 50))
+
def setup(bot):
bot.add_cog(Econ(bot))
