ข้ามไปที่เนื้อหา
เริ่มต้นใช้งาน

วิธีเขียนคำขอที่ดี

สิ่งที่ควรใส่ในคำขอถึง Codexe พร้อมตัวอย่างดีและไม่ดีสำหรับปลั๊กอิน ม็อด ดาต้าแพ็ก บอท และเว็บไซต์

อัปเดตเมื่อ

ในหน้านี้
  1. สิ่งที่ควรใส่
  2. ไม่ดีกับดีกว่า
  3. โปรเจกต์ใหญ่: สร้างทีละขั้น
  4. ปรับปรุงพรอมต์
  5. บอกด้วยว่าไม่ต้องการอะไร

คำขอคือปัจจัยที่มีผลต่อคุณภาพของผลลัพธ์มากที่สุด AI สร้างได้เฉพาะสิ่งที่มันอนุมานได้ ดังนั้นคำขอที่เจาะจงจึงดีกว่าคำขอที่ยาว

#สิ่งที่ควรใส่

  • แพลตฟอร์มและเวอร์ชัน "Paper 1.21.4", "Fabric สำหรับ 1.20.1", "ดาต้าแพ็กสำหรับ 1.21.1", "discord.py"
  • การทำงาน อะไรเกิดขึ้นบ้างทีละขั้น รวมถึงจะเกิดอะไรขึ้นเมื่อมีบางอย่างผิดพลาด
  • คำสั่งและอาร์กิวเมนต์ /home <name> ใครใช้ได้บ้าง และข้อความที่แสดง
  • สิทธิ์ ชื่อ permission node และค่าเริ่มต้น
  • การตั้งค่า สิ่งที่เจ้าของเซิร์ฟเวอร์ควรปรับเปลี่ยนได้
  • การจัดเก็บข้อมูล ในหน่วยความจำ ไฟล์ YAML, SQLite หรือ MySQL และข้อมูลต้องอยู่รอดหลังรีสตาร์ตหรือไม่
  • การเชื่อมต่อกับปลั๊กอินอื่น Vault, PlaceholderAPI, LuckPerms, WorldGuard ระบุชื่อให้ชัดเจน
  • ส่วนติดต่อผู้ใช้ ข้อความในแชต GUI (เมนูแบบช่องเก็บของ) สกอร์บอร์ด บอสบาร์
  • กรณีพิเศษ ผู้เล่นออฟไลน์ ช่องเก็บของเต็ม โลกที่ปิดไว้ การรีโหลด

#ไม่ดีกับดีกว่า

ไม่ดี: make a factions plugin

ดีกว่า:

Text
A Paper 1.21.x factions plugin.
- /f create <name>, /f invite <player>, /f join <name>, /f leave, /f disband (owner only).
- Max 10 members per faction (configurable).
- Chunk claiming with /f claim and /f unclaim; claimed chunks block building by non-members.
- Faction power: +1 per online member, claims limited to power x 2.
- Data saved to SQLite, loaded on startup.
- Vault economy: creating a faction costs 1000 (configurable).
- Permissions: factions.use (default true), factions.admin (op) for /f admin bypass.

ไม่ดี: a mod with new swords

ดีกว่า:

Text
A Fabric mod for Minecraft 1.20.1.
- Adds three swords: Ember Blade (sets targets on fire for 3s), Frost Edge (Slowness II for 2s), Void Cutter (5% chance to teleport the target 8 blocks).
- Crafting recipes using blaze rods, packed ice and ender pearls with a netherite sword.
- English lang file and item models (textures can be placeholders).
- No client-only code on the server side.

ไม่ดี: custom recipes

ดีกว่า:

Text
A datapack for Minecraft 1.21.1.
- Shaped recipe: 8 rotten flesh around a leather = 1 leather.
- Shapeless recipe: 9 nether wart = 1 nether wart block, and the reverse.
- A function that runs every tick and gives Speed I to players standing on gold blocks.

ไม่ดี: moderation bot

ดีกว่า:

Text
A discord.py bot with slash commands.
- /warn <user> <reason>: stores warnings in SQLite, DMs the user.
- /warnings <user>: lists warnings with dates.
- /timeout <user> <minutes> <reason>: applies a Discord timeout; only for members with Moderate Members.
- Logs every action to a channel set with /setlog.
- Token read from an environment variable.

#โปรเจกต์ใหญ่: สร้างทีละขั้น

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

#ปรับปรุงพรอมต์

ในหน้าสร้าง (การสร้างโปรเจกต์) ปุ่มปรับปรุงพรอมต์จะเขียนคำขอคร่าวๆ ใหม่ให้สมบูรณ์ขึ้น มีค่าใช้จ่ายคงที่ 5,000 โทเค็น อ่านข้อความที่ปรับปรุงแล้วทุกครั้งก่อนสร้าง เพราะมันอาจใส่รายละเอียดที่คุณไม่ต้องการเข้ามา

#บอกด้วยว่าไม่ต้องการอะไร

"ไม่ใช้ฐานข้อมูล เก็บทุกอย่างไว้ใน config.yml", "ห้ามใช้ NMS", "ไม่มี dependency ภายนอก" ข้อจำกัดแบบนี้ช่วยกัน AI ไม่ให้เลือกสิ่งที่คุณใช้ไม่ได้

วิธีเขียนคำขอที่ดี | Codexe Docs