A Python robot that edits Wikipedia and interacts with people over IRC https://en.wikipedia.org/wiki/User:EarwigBot
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

setup.rst 1.2 KiB

12 년 전
12 년 전
12 년 전
12 년 전
12345678910111213141516171819202122232425
  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.