A Python robot that edits Wikipedia and interacts with people over IRC https://en.wikipedia.org/wiki/User:EarwigBot
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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)