A Python robot that edits Wikipedia and interacts with people over IRC https://en.wikipedia.org/wiki/User:EarwigBot
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

123456789101112
  1. # -*- coding: utf-8 -*-
  2. # A base class for bot tasks that edit Wikipedia.
  3. class BaseTask(object):
  4. def __init__(self):
  5. """A base class for bot tasks that edit Wikipedia."""
  6. self.task_name = None
  7. def run(self, **kwargs):
  8. """Run this task."""
  9. pass