old_contents: import traceback
  from threading import Thread
  
  import time
  
  import bot_logger
  import crypto
  from dogetipper import SoDogeTip
  
  if __name__ == "__main__":
      bot_logger.logger.info("Bot Started !!")
  
      crypto.init_passphrase()
  
      while True:
          try:
              Bot = SoDogeTip()
  
              thread_master = Thread(target=Bot.main)
              thread_pending_tip = Thread(name='pending_tip',target=Bot.process_pending_tip)
              thread_anti_spamming_tx = Thread(name='anti_spam',target=Bot.anti_spamming_tx)
  
              thread_master.start()
              thread_pending_tip.start()
              thread_anti_spamming_tx.start()
  
              thread_master.join()
              thread_pending_tip.join()
              thread_anti_spamming_tx.join()
  
              bot_logger.logger.error('All bot task finished ...')
          except:
              traceback.print_exc()
              bot_logger.logger.error('Resuming in 30sec...')
              time.sleep(30)
  
new_contents: import traceback
  from threading import Thread
  
  import time
  
  import bot_logger
  import crypto
  from dogetipper import SoDogeTip
  
  if __name__ == "__main__":
      bot_logger.logger.info("Bot Started !!")
  
      # get wallet pass phrase from user input
      crypto.init_passphrase()
  
      while True:
          try:
              Bot = SoDogeTip()
  
              thread_master = Thread(target=Bot.main)
              thread_pending_tip = Thread(name='pending_tip',target=Bot.process_pending_tip)
              thread_anti_spamming_tx = Thread(name='anti_spam',target=Bot.anti_spamming_tx)
  
              thread_master.start()
              thread_pending_tip.start()
              thread_anti_spamming_tx.start()
  
              thread_master.join()
              thread_pending_tip.join()
              thread_anti_spamming_tx.join()
  
              bot_logger.logger.error('All bot task finished ...')
          except:
              traceback.print_exc()
              bot_logger.logger.error('Resuming in 30sec...')
              time.sleep(30)
  
subject: add a comment