นโยบายบอต

This page is a translated version of the page Bot policy and the translation is 53% complete.
Outdated translations are marked like this.
Shortcut:
BP
หน้านี้แสดงเค้าโครงมาตรฐานและแนวปฏิบัติที่เกี่ยวข้องกับบอต ซึ่งมีผลบังคับใช้ในบางโครงการ (ดู Bot policy/Implementation) โดยสามารถตรวจสอบได้โดยดูที่ "Project:Bot policy" บนวิกินั้น ๆ ซึ่งควรโยงมาหน้านี่หรือเปลี่ยนทางไปยังนโยบายท้องถิ่น

หน้านี้นอกจากจะมีนโยบายบนเมทาแล้ว ยังรวมถึงการอนุญาตโดยอัตโนมัติและบอตทั่วโลก ถ้าต้องการขอการเข้าถึงบอตบนเมทา กรุณาไปที่ Meta:Requests for adminship#Requests for bot flags

บอต เป็นกระบวนการอัตโนมัติหรือกึ่งอัตโนมัติในการแก้ไขหน้าโดยลดภาระหรือการควบคุมดูแลจากมนุษย์โดยตรง เนื่องจากบอตอาจทำให้ทรัพยากรเซิร์ฟเวอร์ทำงานหนักหรือทำให้โครงการหยุดชะงักโดยไม่ตั้งใจ บอตจะต้องปฏิบัติตามนโยบายและแนวปฏิบัติที่ระบุไว้ด้านล่าง เค้าโครงนโยบายแสดงถึงแนวทางที่บอตจะสามารถนำไปใช้ในโครงการอย่างเหมาะสม บอตที่ไม่ปฏิบัติตามนโยบายอาจถูกบล็อกทันทีจนกว่าผู้ควบคุมได้แก้ไขปัญหาใด ๆ หรือยินยอมปฏิบัติตาม

นโยบาย

บัญชีบอต

บอตจะต้องทำงานโดยใช้บัญชีแยกต่างหากจากผู้ควบคุม เนื่องจากผู้แก้ไขที่เป็นมนุษย์ไม่ควรได้รับสถานะบอต ที่หน้าผู้ใช้ควรแสดงอย่างโปรงใส่และชัดเจนว่าเป็นบอตเพื่อแยกความแตกต่างจากผู้แก้ไขที่เป็นมนุษย์ และผู้ควบคุมจะต้องพร้อมที่จะตอบความคิดเห็นใด ๆ ด้วยตนเอง ผู้ใช้ไม่ได้รับอนุญาตให้ใช้สคริปต์ตอบรับอัตโนมัติ ผู้ควบคุมบางคนอาจเลือกที่จะเปลี่ยนทางหน้าคุยของบอตไปยังหน้าคุยของตนเองหากบอตไม่ได้ถูกำหนดให้ตรวจสารที่ส่งมา

การอนุญาต

มีสามแนวทางในการขอการเข้าถึงบอตบนวิกิ

บอตทั่วโลก

บอตทั่วโลกจะสามารถเข้าถึงทุกวิกิที่ได้รับอนุญาตบอตทั่วโลก (สิ่งนี้จะต้องได้รับอนุญาตอย่างชัดเจนจากนโยบายท้องถิ่น ดูรายชื่อ) เพื่อให้มีคุณสมบัติสำหรับการเข้าถึงบอตทั่วโลกจะต้องปฏิบัติตามข้อกำหนดต่อไปนี้

  • ผู้ดูแลบอตต้องเปิดการอภิปรายเป็นเวลาสองสัปดาห์ที่ Steward requests/Bot status#Global bot status requests
  • The discussion will be publicized via MassMessage (New global bot discussion), where interested community members and wikis can be subscribed;
  • The bot operator must demonstrate the bot task is welcomed on multiple Wikimedia projects. A good way to show it is to be flagged on 5 or more wikis for a single task;
  • The operator should make sure to adhere to the wiki's preference as related to the use of the bot flag.
  • :* สถานะบอตทั่วโลกช่วยให้บอตสามารถเข้าถึงโครงการและวิกิซึ่งมีสถานะบอตในท้องถิ่นที่ถูกจำกัด คุณจะพบรายชื่อวิกิอย่างละเอียดที่สถานะบอตทั่วโลกมีการใช้งานได้ที่นี่ (คุณสามารถดำเนินการขอสถานะบอตท้องถิ่นต่อไปในโครงการที่ไม่อนุญาตให้ใช้บอตทั่วโลก)

การอนุญาตโดยอัตโนมัติ

ถ้าการอนุญาตโดยอัตโนมัติได้รับอนุญาตอย่างชัดเจนบนวิกิ ผู้ควบคุมบอตสามารถแจ้งขอสถานะบอตท้องถิ่นโดยตรงจากผู้จัดการโครงการ เพื่อให้ผ่านคุณสมบัตินี้จะต้องปฏิบัติตามข้อกำหนดต่อไปนี้
  • คำขอจะต้องได้รับอนุญาตจากนโยบายบอตท้องถิ่นหรือหน้าคำขอ
  • บอตจะต้องทำการแก้ไขอย่างสม่ำเสมอโดยไม่มีการให้สถานะบอตเป็นเวลาอย่างน้อยหนึ่งสัปดาห์ หรือทำการแก้ไข 100 ครั้งบนวิกิที่เกี่ยวข้องเพื่อการสาธิตการใช้งาน
  • :* บอตจะต้องบำรุงรักษาลิงก์ข้ามภาษาหรือแก้ไขการเปลี่ยนทางซ้ำซ้อนเท่านั้น

ความเห็นพ้องของชุมชน

มิฉะนั้น ถ้ามีชุมชนท้องถิ่นที่ให้ความสนใจในการประมวลผลการใช้งานบอต บอตต้องได้รับการอนุมัติจากชุมชนในหน้าอภิปรายของท้องถิ่นที่เกี่ยวข้องมากที่สุดก่อนที่จะแก้ไขโดยไม่มีสถานะบอตที่ใช้ความเร็วสูงหรือไม่มีการควบคุมโดยมนุษย์ เมื่อมีความเห็นพ้องร่วมกัน ผู้ดูแลระบบสิทธิแต่งตั้งจะเพิ่มสถานะหรือผู้จัดการโครงการอาจทำตามคำขอเช่นนั้น ถ้าไม่มีชุมชนท้องถิ่นและนโยบายข้างต้นไม่สามารถใช้ได้ บอตต้องปฏิบัติงานโดยไม่มีสถานะบอตหรือไม่ปฏิบัติเลย

การใช้งานที่ยอมรับไม่ได้

  • Controversial changes: Bots may be used to perform edits which are most likely supported by other local editors; they should never be used to perform controversial edits. If you intend to expand the scope of the bot beyond that which was supported by the community, make note of this at the relevant discussion page to ensure that there is no opposition. If your bot flag was given by automatic approval, you must not exceed the limits described under "Automatic approval".
  • Data retrieval: Bots may not be used to retrieve bulk content for any use not directly related to an approved bot task. This includes dynamically loading pages from another website, which may result in the website being blacklisted and permanently denied access. If you would like to download bulk content or mirror a project, please do so by downloading or hosting your own copy of our database.
  • Spellchecking: No bot may automatically correct spelling mistakes without explicit community approval, particularly in the main content namespace. It is not technically possible in most languages to automatically correct spelling mistakes without a significant margin of error.

การนำสถานะบอตทั่วโลกออก

Global bot permissions will be removed:

  • At the bot's operator request
  • If the bot is persistently used to perform tasks that are outside the global bot remit
  • If the bot is found to be inactive, with the following provisions:
    • A global bot account is deemed inactive if it has not made any edits for a whole year on any project that allows global bot access.
    • Before a global bot account's permissions are removed on the basis of inactivity, its operator must be notified at least on their home wiki(s) and at Meta-Wiki.

แนวปฏิบัติ

ชื่อ

Although not required, the bot name should clearly contain the word "bot" in its user name to more easily distinguish it from human editors; the most common forms are derived from the operator's username (such as Pathosbot), or using disambiguation style (such as Xenophon (bot)).

Edit throttle and peak hours

Bots running without a bot flag should edit at intervals of over 1 minute between edits (= less than 1 edit per minute). Once they have been authorised and appropriately flagged, they should operate at an absolute minimum interval of 5 seconds (12 edits per minute). Bots should try to avoid running during the busiest hours, as they rapidly use server resources that should be reserved for human readers and editors. During these hours, they should operate at intervals of 20 seconds (3 edits per minute) to conserve resources.

Bots' editing speeds can be automatically adjusted based on server load (slave database server lag) by appending an extra parameter to the query string of each requested URL; see maxlag documentation on mediawiki.

Supervision

Unless the bot is publicly stated to run autonomously, the operator should remain available, occasionally check for messages, and be ready to shut down the bot if it does not perform as desired or if complaints are received. If the operator is not available, the bot may be blocked until any issues are resolved.

Best practices

Please read wikitech:Help:Toolforge/Developing successful tools for strong recommendations that will make life easier for you and for everyone else in the future!

Briefly:

  • Pick a license
  • Publish the code
  • Have co-maintainers
  • Write some documentation

See also