A Python robot that edits Wikipedia and interacts with people over IRC https://en.wikipedia.org/wiki/User:EarwigBot
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

14 righe
392 B

  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)