A Python robot that edits Wikipedia and interacts with people over IRC https://en.wikipedia.org/wiki/User:EarwigBot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

earwigbot.py 335 B

123456789101112131415
  1. # -*- coding: utf-8 -*-
  2. import time
  3. from subprocess import *
  4. def main():
  5. while 1:
  6. call(['python', 'core/main.py'])
  7. time.sleep(5) # sleep for five seconds between bot runs
  8. if __name__ == "__main__":
  9. try:
  10. main()
  11. except KeyboardInterrupt:
  12. exit("\nKeyboardInterrupt: stopping bot wrapper.")