""" _summary_ """ import nextcord from nextcord.ext import commands, tasks from datetime import time from pytz import timezone class DailyLoop(commands.Cog, name="Daily Loop"): """ Class for performing daily functions. """ def __init__(self, bot: commands.Bot) -> None: self.bot = bot @commands.Cog.listener() async def on_ready(self): """ Starts the loop when bot is ready. """ await self.bot.wait_until_ready() # pylint doesn't recognize that periodic_update_guild_data is subclassed from tasks.loop. await self.do_thing.start() # pylint: disable=no-member @tasks.loop(time=time(hour=0, tzinfo=timezone("GMT"))) async def do_thing(self): """ """ imcompiling: nextcord.User = await self.bot.fetch_user(206602713511886849) await imcompiling.send("its reset in runescape")