中文子域名已经上线。若想参加编辑/翻译,请务必 仔细 阅读中文翻译项目页面。谢谢合作!

机器人

来自Gamepedia帮助Wiki
跳转至: 导航搜索
Robot.png

A bot is a computer program that automatically retrieves or updates wiki pages when it is executed. In general, bots are used for repetitive maintenance tasks, whose volume and characteristics are too large to be performed manually by users.

Developing and executing bots is normally outside the role of normal users, requires programming experience and must be done in coordination with the wiki's admins or other staff.

Flagging a bot[编辑 | 编辑源代码]

Bot accounts can be flagged as a bot using Special:UserRights by a bureaucrat or by Gamepedia Staff. By default, bot edits are hidden in 最近更改.

Framework and interface for bot development[编辑 | 编辑源代码]

Bots do not access the wiki through the normal user interface. MediaWiki has an API (Application Programming Interface) available for this purpose. An API is a protocol for standardised communication between two computer programs. Check mw:API:Client code for more information.

Bots used several different frameworks, the most popular being AutoWikiBrowser and PyWikipediaBot. Several bot operators create their own frameworks, for fun or because of the many limitations that existing frameworks have.