Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- def uptime_command(self, c):
- time_passed = int(time.time()) - self.start_time
- hours = int(time_passed / (60*60))
- if time_passed <= 60:
- minutes = 0
- else:
- minutes = int(time_passed/60)%60
- c.privmsg(self.channel, f"The stream has been up for {hours} hour(s) and {minutes} minute(s)")
- time_passed = 0
- minutes = 0
- hours = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement