# Create Discord Bot Account

ก่อนอื่นสร้าง account ของ Discord bot ของเรากันก่อน ไปที่ [Discord Developer Portal](https://discord.com/developers/applications) เลือก *New Application*

<figure><img src="/files/rYfrcEM6Qwa22yvMW8nC" alt=""><figcaption></figcaption></figure>

ใส่ชื่อ application และกดยอมรับ Developer Terms of Service และ Developer Policy

<figure><img src="https://lh7-rt.googleusercontent.com/slidesz/AGV_vUdx2lCyoxYQprqiNDU4YpOtVYWPTPLTRUXIjy845tZ5wHUeTir3CJN-ELiwOsdml5F1OP4O2AG1SiAjNYg_sx_uYbbpGCaJJxFwrnLLZAY_t8actR5Avj4bTPU1T1UKy7jvRiJzhg=s2048?key=zouhIV8Fq_fCPxgqccmT5w" alt=""><figcaption></figcaption></figure>

เมื่อสร้าง application เสร็จแล้วจะเข้ามาหน้านี้

จากนั้นใส่รายละเอียดต่างๆของน้องบอทให้เรียบร้อย หน้านี้จะมี Application ID (ตัวนี้จะถูกใช้ต่อไป) และ Public Key ของแอพนี้นะ

<figure><img src="/files/fpgsWXyRXIyeKvM79Pi5" alt=""><figcaption></figcaption></figure>

เมื่อเราสร้างแอพเรียบร้อยแล้ว มาสร้างบอทกันต่อ โดยกดที่แท็บ Bot เราจะเห็นรายละเอียดของ bot ที่เราเพิ่งสร้างไป

ไป check public bot ว่าเปิดอยู่ไหม โดย default แล้ว บอทจะเป็น public bot ใคร ๆ ก็สามารถพาน้องบอทมาที่ server ตัวเองได้

<figure><img src="/files/IhiFIkkFzBU0iT4yRHTp" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mikkicoding.mikkipastel.com/discord-bot-hands-on/create-your-first-discord-bot/create-discord-bot-account.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
