Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2020
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. @bot.event
  2. async def on_ready():
  3. print (("Ready to go!"))
  4. print (f"Serving : ({len (bot.guilds)})guilds.")
  5. servers=list(bot.guilds)
  6. for x in range(len(servers)):
  7. print(' ' + servers[x-1].name)
  8.  
  9. await bot.change_presence(activity=discord.Game("Online"))
  10.  
  11. send_time='11:16'
  12. async def time_check():
  13. await bot.wait_until_ready()
  14. while not bot.is_closed:
  15. now=datetime.strftime(datetime.now(),'%H:%M')
  16. if now == send_time:
  17. await bot.send("TEST")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement