A Python robot that edits Wikipedia and interacts with people over IRC https://en.wikipedia.org/wiki/User:EarwigBot
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

26 řádky
1.2 KiB

  1. Setup
  2. =====
  3. The bot stores its data in a "working directory", including its config file
  4. and databases. This is also the location where you will place custom IRC
  5. commands and bot tasks, which will be explained later. It doesn't matter where
  6. this directory is, as long as the bot can write to it.
  7. Start the bot with :command:`earwigbot path/to/working/dir`, or just
  8. :command:`earwigbot` if the working directory is the current directory. It
  9. will notice that no :file:`config.yml` file exists and take you through the
  10. setup process.
  11. There is currently no way to edit the :file:`config.yml` file from within the
  12. bot after it has been created, but you should be able to make any necessary
  13. changes yourself.
  14. After setup, the bot will start. This means it will connect to the IRC servers
  15. it has been configured for, schedule bot tasks to run at specific times, and
  16. then wait for instructions (as commands on IRC). For a list of commands, say
  17. "``!help``" (commands are messages prefixed with an exclamation mark).
  18. You can stop the bot at any time with :kbd:`Control-c`, same as you stop a
  19. normal Python program, and it will try to exit safely. You can also use the
  20. "``!quit``" command on IRC.