A Python robot that edits Wikipedia and interacts with people over IRC https://en.wikipedia.org/wiki/User:EarwigBot
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.py 392 B

1234567891011121314
  1. # -*- coding: utf-8 -*-
  2. from subprocess import *
  3. try:
  4. from config.secure_config import *
  5. except ImportError:
  6. print "Can't find a secure_config file!"
  7. print "Make sure you have configured the bot by moving 'config/secure_config.py.default' to 'config/secure_config.py' and by filling out the information inside."
  8. exit()
  9. while 1:
  10. cmd = ['python', 'bot.py']
  11. call(cmd)