Wikinews:Tech/Pitsilemu/config.py/zh
下载Pitsilemu的tar包,或从SVN下载Pitsilemu之后,你将看到一个名为config.sample.py的文件。
用法
edit- 用文本编辑器打开该文件。
- 你将看到:
# -*- coding: utf-8 -*- # Rename this file to config.py after configuring the bot parameters nombre="BOTNAME" clave="" canales=["CHANNELS"] pro="w" #wikiproject idi="es" #wikilanguage sug="sug.txt"
- 将:
- nombre="BOTNAME" 替换为你的Bot的名字。 例如: nombre="Pitsilemu"
- clave="" 替换为你的Bot昵称的密码 (如果使用NickServ注册了该昵称)。 例如: clave="HELLO"
- canales=["CHANNELS"] 替换为你的Bot将要加入的频道。 例如: canales=["#pitsilemu, #wikinews"]
- pro="w" 替换为欲在其上运行的维基计划代码。 例如,如果你想在维基教科书上运行该Bot,则替换为 pro="n"。
- idi="es" 替换为你的Bot的工作语言。 例如,如果频道为马来语,则替换为idi="ml"。
- 不要更改sug="sug.txt"。