Better time keepking doesn't include tick

pull/151/head
bobloy 4 years ago
parent 10767da507
commit 4c1cd86930

@ -64,11 +64,12 @@ class Timerole(Cog):
Useful for troubleshooting the initial setup Useful for troubleshooting the initial setup
""" """
pre_run = datetime.utcnow()
async with ctx.typing(): async with ctx.typing():
pre_run = datetime.utcnow()
await self.timerole_update() await self.timerole_update()
await ctx.tick()
after_run = datetime.utcnow() after_run = datetime.utcnow()
await ctx.tick()
await ctx.maybe_send_embed(f"Took {after_run-pre_run} seconds") await ctx.maybe_send_embed(f"Took {after_run-pre_run} seconds")
@commands.group() @commands.group()
@ -187,7 +188,7 @@ class Timerole(Cog):
# all_mrs = await self.config.custom("RoleMember").all() # all_mrs = await self.config.custom("RoleMember").all()
log.debug(f"Begin timerole update") # log.debug(f"Begin timerole update")
for guild in self.bot.guilds: for guild in self.bot.guilds:
guild_id = guild.id guild_id = guild.id

Loading…
Cancel
Save