Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @bot.event
- async def on_ready():
- print (("Ready to go!"))
- print (f"Serving : ({len (bot.guilds)})guilds.")
- servers=list(bot.guilds)
- for x in range(len(servers)):
- print(' ' + servers[x-1].name)
- await bot.change_presence(activity=discord.Game("Online"))
- send_time='11:16'
- async def time_check():
- await bot.wait_until_ready()
- while not bot.is_closed:
- now=datetime.strftime(datetime.now(),'%H:%M')
- if now == send_time:
- await bot.send("TEST")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement