remove cleanupdb command
@@ -339,17 +339,6 @@ Latency: {round(self.bot.latency*1000, 2)} ms
async with self.bot.db.acquire() as con:
await ctx.send(await con.execute(f"DELETE FROM prefixes WHERE prefixes.gid='{gid}'"))
- @commands.command(name="cleanupdb")
- @commands.is_owner()
- async def cleanup_dp(self, ctx):
- # Cleanup the prefixes table
- guilds = await self.bot.db.fetch("SELECT * FROM prefixes")
- for gid in guilds:
- async with self.bot.db.acquire() as con:
- if self.bot.get_guild(gid) is None:
- await con.execute(f"DELETE FROM prefixes WHERE prefixes.gid='{gid}'")
- await con.execute(f"DELETE FROM doreplies WHERE doreplies.gid='{gid}'")
-
def setup(bot):
