start on chug command
@@ -734,6 +734,32 @@ class Econ(commands.Cog):
await self.send(ctx, random.choice(self.d.pillaging.u_lose.user).format(penalty, self.d.emojis.emerald))
await self.send(victim, random.choice(self.d.pillaging.u_lose.victim).format(ctx.author))
+ @commands.command(name='chug')
+ async def chug(self, ctx, *, _pot):
+ pot = _pot.lower()
+
+ if pot in self.d.potions.get(ctx.author.id):
+ await self.bot.send(ctx, 'You can\'t use more than one of each type of potion at once.')
+ return
+
+ db_item = await self.db.fetch_item(ctx.author.id, pot)
+
+ if db_item is None:
+ await self.bot.send(ctx, 'You can\'t use an item you don\'t even have.')
+ return
+
+ if pot == 'haste i potion':
+ await self.db.remove_item(ctx.author.id, pot)
+
+ self.d.potions[ctx.author.id] = self.d.potions.get(ctx.author.id, [])
+ self.d.potions[ctx.author.id].append(pot)
+
+ await self.bot.send(ctx, 'You have chugged a **{pot}** (Which lasts 6 minutes)')
+
+ await asyncio.sleep(60 * 6)
+
+ await self.bot.send(ctx.author, )
+
def setup(bot):
bot.add_cog(Econ(bot))
