From aa42efaa4dd03b2a53547ef0d68029c7e9f41fce Mon Sep 17 00:00:00 2001 From: Mango0x45 Date: Sat, 27 Jun 2020 18:00:39 +0200 Subject: Set purge limit to 500 --- cogs/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/admin.py b/cogs/admin.py index e77dc66..3af681d 100644 --- a/cogs/admin.py +++ b/cogs/admin.py @@ -19,7 +19,7 @@ class Admin(commands.Cog): @commands.command(aliases=['deleteEverything'], hidden=True) @commands.check(is_botmaster) async def purge(self, ctx): - await ctx.message.channel.purge() + await ctx.message.channel.purge(limit=500) @commands.command(aliases=['quit'], hidden=True) @commands.check(is_botmaster) -- cgit v1.2.3 From 4e3700629dc878ca7f895ee2badd686e3862121f Mon Sep 17 00:00:00 2001 From: Mango0x45 Date: Sat, 27 Jun 2020 18:01:07 +0200 Subject: TODO: Make ID's ints D: --- cogs/src.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cogs/src.py b/cogs/src.py index df40678..bf776e7 100644 --- a/cogs/src.py +++ b/cogs/src.py @@ -119,11 +119,11 @@ async def pendingRuns(self, ctx): mcbece_runs += 1 embed = discord.Embed( title=leaderboard, url=link, description=f"{categoryName} in `{str(rta).replace('000','')}` by **{player}**", color=16711680+i*60, timestamp=timestamp) - await self.bot.get_channel(self.bot.config[str(ctx.message.guild.id)]["pending_channel"]).send(embed=embed) + await self.bot.get_channel(int(self.bot.config[str(ctx.message.guild.id)]["pending_channel"])).send(embed=embed) runs = runs2 gameID = gameID2 embed_stats = discord.Embed(title='Pending Run Stats', description=f"Full Game Runs: {mcbe_runs}\nIndividual Level Runs: {mcbeil_runs}\nCategory Extension Runs: {mcbece_runs}", color=16711680 + i * 60) - await self.bot.get_channel(self.bot.config[str(ctx.message.guild.id)]["pending_channel"]).send(embed=embed_stats) + await self.bot.get_channel(int(self.bot.config[str(ctx.message.guild.id)]["pending_channel"])).send(embed=embed_stats) async def verifyNew(self, apiKey=None, userID=None): @@ -203,7 +203,7 @@ class Src(commands.Cog): @commands.guild_only() async def pending(self, ctx): async with ctx.typing(): - await self.bot.get_channel(self.bot.config[str(ctx.message.guild.id)]["pending_channel"]).purge(limit=500) + await self.bot.get_channel(int(self.bot.config[str(ctx.message.guild.id)]["pending_channel"])).purge(limit=500) await pendingRuns(self, ctx) @commands.command(description="Reject runs quickly") -- cgit v1.2.3