A Python robot that edits Wikipedia and interacts with people over IRC https://en.wikipedia.org/wiki/User:EarwigBot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
357 B

  1. # -*- coding: utf-8 -*-
  2. # A task to generate statistics for [[WP:AFC]] and save them to [[Template:AFC_statistics]].
  3. import time
  4. from wiki.base_task import BaseTask
  5. class Task(BaseTask):
  6. def __init__(self):
  7. self.task_name = "afc_statistics"
  8. def run(self, **kwargs):
  9. time.sleep(10)
  10. print "kwargs: {}".format(kwargs)