forked from ticketfrei/ticketfrei
changed ticketfrei.py to python3 #7
This commit is contained in:
parent
fb24c758a8
commit
cbf16b8f74
|
@ -1,9 +1,10 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import pytoml as toml
|
import pytoml as toml
|
||||||
import time
|
import time
|
||||||
import traceback
|
import traceback
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
from retootbot import RetootBot
|
from retootbot import RetootBot
|
||||||
|
@ -30,7 +31,7 @@ if __name__ == '__main__':
|
||||||
statuses = tbot.flow(statuses)
|
statuses = tbot.flow(statuses)
|
||||||
time.sleep(60)
|
time.sleep(60)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print "Good bye. Remember to restart the bot!"
|
print("Good bye. Remember to restart the bot!")
|
||||||
except:
|
except:
|
||||||
traceback.print_exc()
|
tbot.log(traceback.extract_tb(sys.exc_info()[2]))
|
||||||
tbot.shutdown()
|
tbot.shutdown()
|
||||||
|
|
Loading…
Reference in a new issue