A Python robot that edits Wikipedia and interacts with people over IRC https://en.wikipedia.org/wiki/User:EarwigBot
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

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)