A Python robot that edits Wikipedia and interacts with people over IRC https://en.wikipedia.org/wiki/User:EarwigBot
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

earwigbot.py 455 B

123456789101112131415
  1. # -*- coding: utf-8 -*-
  2. import time
  3. from subprocess import *
  4. try:
  5. from config import irc_config, secure_config
  6. except ImportError:
  7. print """Missing a config file! Make sure you have configured the bot. All *.py.default files in config/
  8. should have their .default extension removed, and the info inside should be corrected."""
  9. exit()
  10. while 1:
  11. call(['python', 'core/main.py'])
  12. time.sleep(5) # sleep for five seconds between bot runs