A Python robot that edits Wikipedia and interacts with people over IRC https://en.wikipedia.org/wiki/User:EarwigBot
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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.")