mirror of https://github.com/sgoudham/Enso-Bot.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
642 B
Python
24 lines
642 B
Python
from discord.ext import commands
|
|
|
|
|
|
class Reminder(commands.Cog):
|
|
def __init__(self, bot):
|
|
self.bot = bot
|
|
"""
|
|
@commands.Cog.listener()
|
|
@commands.is.owner()
|
|
async def ():
|
|
time_left = [float(i) for i in str(datetime.now().time()).split(":")]
|
|
time_left = timedelta(hours=2) - timedelta(hours=time_left[0] % 2, minutes=time_left[1], seconds=time_left[2])
|
|
sleep(round(time_left.total_seconds()))
|
|
|
|
while True:
|
|
await ctx.send("Bump the Server Idiots")
|
|
sleep(7200)
|
|
|
|
_thread.start_new_thread(ex(self=self, ctx), ())
|
|
"""
|
|
|
|
def setup(bot):
|
|
bot.add_cog(Reminder(bot))
|