Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Crowdin updates #91

Merged
merged 64 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
c9b2b59
New translations readme.th.md (Thai)
Maseshi May 16, 2024
bd9cc95
New translations readme.th.md (Romanian)
Maseshi May 23, 2024
2fcc3ed
New translations readme.th.md (French)
Maseshi May 23, 2024
a49f559
New translations readme.th.md (Spanish)
Maseshi May 23, 2024
608a4fc
New translations readme.th.md (Bulgarian)
Maseshi May 23, 2024
73e8069
New translations readme.th.md (Czech)
Maseshi May 23, 2024
6736665
New translations readme.th.md (Danish)
Maseshi May 23, 2024
05f5a96
New translations readme.th.md (German)
Maseshi May 23, 2024
89a64f0
New translations readme.th.md (Greek)
Maseshi May 23, 2024
d0f13d3
New translations readme.th.md (Finnish)
Maseshi May 23, 2024
c46f46b
New translations readme.th.md (Hungarian)
Maseshi May 23, 2024
a8af65d
New translations readme.th.md (Italian)
Maseshi May 23, 2024
f130274
New translations readme.th.md (Japanese)
Maseshi May 23, 2024
3def4aa
New translations readme.th.md (Korean)
Maseshi May 23, 2024
a7bce31
New translations readme.th.md (Lithuanian)
Maseshi May 23, 2024
0ed3436
New translations readme.th.md (Dutch)
Maseshi May 23, 2024
badbffd
New translations readme.th.md (Norwegian)
Maseshi May 23, 2024
8ae19a1
New translations readme.th.md (Polish)
Maseshi May 23, 2024
14a1ad1
New translations readme.th.md (Russian)
Maseshi May 23, 2024
0865acc
New translations readme.th.md (Swedish)
Maseshi May 23, 2024
e1d5e7c
New translations readme.th.md (Turkish)
Maseshi May 23, 2024
d152967
New translations readme.th.md (Ukrainian)
Maseshi May 23, 2024
59cc878
New translations readme.th.md (Chinese Simplified)
Maseshi May 23, 2024
af42df8
New translations readme.th.md (Chinese Traditional)
Maseshi May 23, 2024
ef0b9a2
New translations readme.th.md (Vietnamese)
Maseshi May 23, 2024
aa9804e
New translations readme.th.md (Portuguese, Brazilian)
Maseshi May 23, 2024
06dd5e1
New translations readme.th.md (Indonesian)
Maseshi May 23, 2024
0eace14
New translations readme.th.md (Croatian)
Maseshi May 23, 2024
1a7a540
New translations readme.th.md (Hindi)
Maseshi May 23, 2024
783d5cf
New translations readme.th.md (English, United States)
Maseshi May 23, 2024
7e01567
New translations readme.th.md (English, United Kingdom)
Maseshi May 23, 2024
90cd5ee
New translations readme.th.md (Thai)
Maseshi May 23, 2024
2e8b2ba
New translations translation.json (Thai)
Maseshi May 23, 2024
0c01d5d
New translations translation.json (Romanian)
Maseshi May 23, 2024
2cfbb39
New translations translation.json (French)
Maseshi May 23, 2024
959794a
New translations translation.json (Spanish)
Maseshi May 23, 2024
0c8c37e
New translations translation.json (Bulgarian)
Maseshi May 23, 2024
2b730a3
New translations translation.json (Czech)
Maseshi May 23, 2024
2680de3
New translations translation.json (Danish)
Maseshi May 23, 2024
010b6b2
New translations translation.json (German)
Maseshi May 23, 2024
686344c
New translations translation.json (Greek)
Maseshi May 23, 2024
712ddbd
New translations translation.json (Finnish)
Maseshi May 23, 2024
316286b
New translations translation.json (Hungarian)
Maseshi May 23, 2024
f005b68
New translations translation.json (Italian)
Maseshi May 23, 2024
0e1553d
New translations translation.json (Japanese)
Maseshi May 23, 2024
7fb6ef3
New translations translation.json (Korean)
Maseshi May 23, 2024
035810a
New translations translation.json (Lithuanian)
Maseshi May 23, 2024
cbe9637
New translations translation.json (Dutch)
Maseshi May 23, 2024
2203b9e
New translations translation.json (Norwegian)
Maseshi May 23, 2024
0537417
New translations translation.json (Polish)
Maseshi May 23, 2024
f9f45e6
New translations translation.json (Russian)
Maseshi May 23, 2024
11ae325
New translations translation.json (Swedish)
Maseshi May 23, 2024
e49aae7
New translations translation.json (Turkish)
Maseshi May 23, 2024
7bd4671
New translations translation.json (Ukrainian)
Maseshi May 23, 2024
a26619a
New translations translation.json (Chinese Simplified)
Maseshi May 23, 2024
bbfbfc4
New translations translation.json (Chinese Traditional)
Maseshi May 23, 2024
fb90239
New translations translation.json (Vietnamese)
Maseshi May 23, 2024
9069752
New translations translation.json (Portuguese, Brazilian)
Maseshi May 23, 2024
c894c20
New translations translation.json (Indonesian)
Maseshi May 23, 2024
5d94d82
New translations translation.json (Croatian)
Maseshi May 23, 2024
2a964f2
New translations translation.json (Hindi)
Maseshi May 23, 2024
50d18dd
New translations translation.json (English, United States)
Maseshi May 23, 2024
3b69018
New translations translation.json (English, United Kingdom)
Maseshi May 23, 2024
c8f7ff8
Merge branch 'main' into i10n
Maseshi May 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 56 additions & 64 deletions documents/README.bg.md
Original file line number Diff line number Diff line change
@@ -1,59 +1,57 @@
<div align="center">
<img src="https://raw.githubusercontent.com/Maseshi/Shioru/main/assets/icons/apple-icon.png" width="100" style="border-radius: 100%;" />
<center>
<img src="https://raw.githubusercontent.com/Maseshi/Shioru/main/assets/icons/apple-icon.png" width="100" style="border-radius: 100%;" alt="Shioru" />
<strong>
<h1>Shioru</h1>
<p>เลขาส่วนตัวใน Discord ที่จะช่วยทำให้กิลด์ของคุณน่าอยู่ยิ่งขึ้น</p>
</strong>
<img src="https://img.shields.io/badge/discord.js-14-blue?logo=discord&logoColor=white
" />
<img src="https://img.shields.io/github/last-commit/Maseshi/Shioru?logo=github
" />
<img src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fq60yrzp0cbgg.statuspage.io%2Fapi%2Fv2%2Fstatus.json&query=status.indicator&logo=google-cloud&logoColor=white&label=status&link=https%3A%2F%2Fshioru.statuspage.io%2F
" />
<a title="Crowdin" target="_blank" href="https://crowdin.com/project/shioru">
<img src="https://badges.crowdin.net/shioru/localized.svg" />
<a href="https://shiorus.web.app/invite">เชิญชวน</a>
|
<a href="https://github.com/Maseshi/Shioru/tree/main/documents">เปลี่ยนภาษา</a>
|
<a href="https://shioru.statuspage.io/">สถานะ</a>
|
<a href="https://github.com/Maseshi/Shioru/tree/main/documents">ปรับปรุงการแปลภาษา</a>
|
<a href="https://top.gg/bot/704706906505347183">ให้คะแนน</a>
<br />
<img src="https://img.shields.io/badge/discord.js-14-blue?logo=discord&logoColor=white" alt="Discord.js version 14" />
<img src="https://img.shields.io/github/last-commit/Maseshi/Shioru?logo=github" alt="Last commit" />
<img src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fq60yrzp0cbgg.statuspage.io%2Fapi%2Fv2%2Fstatus.json&query=status.indicator&logo=google-cloud&logoColor=white&label=status&link=https%3A%2F%2Fshioru.statuspage.io%2F" alt="Status" />
<a title="Crowdin" href="https://crowdin.com/project/shioru">
<img src="https://badges.crowdin.net/shioru/localized.svg" alt="Crowdin" />
</a>
<a title="CodeFactor" target="_blank" href="https://www.codefactor.io/repository/github/maseshi/shioru">
<a title="CodeFactor" href="https://www.codefactor.io/repository/github/maseshi/shioru">
<img src="https://www.codefactor.io/repository/github/maseshi/shioru/badge" alt="CodeFactor" />
</a>
<a title="Топ.гг" target="_blank" href="https://top.gg/bot/704706906505347183">
<img src="https://top.gg/api/widget/upvotes/704706906505347183.svg" />
<a title="Топ.гг" href="https://top.gg/bot/704706906505347183">
<img src="https://top.gg/api/widget/upvotes/704706906505347183.svg" alt="Top.gg" />
</a>
</div>

[เปลี่ยนภาษา](https://github.com/Maseshi/Shioru/tree/main/documents)
</center>

เลขาส่วนตัวที่ดีที่สุดของคุณจะช่วยให้กิลด์ของคุณดูมีชีวิตชีวามากขึ้น เธอสามารถทำสิ่งต่าง ๆ ได้หลายอย่างซึ่งคุณสามารถดูรายละเอียดข้อมูลของคำสั่งทั้งหมด ได้ง่าย ๆ โดยพิมพ์ `/help`

<div align="center">
<a href="https://shiorus.web.app/invite">
<img src="https://img.shields.io/badge/Invite_Bot-_?style=for-the-badge&logo=discord&logoColor=white&color=blue
" />
</a>
</div>

## ✨ คุณสมบัติเด่น

- Работи на [Discord.js](https://discord.js.org/) v14.
- Възможност за персонализиране на различни желани елементи
- Музиката може да се възпроизвежда от [YouTube](https://www.youtube.com/), [Spotify](https://www.spotify.com/) и [SoundCloud](https://soundcloud.com/) с автоматично възпроизвеждане.
- Поддръжка на множество езици Можете да проверите поддържаните езици от[езикови](https://github.com/Maseshi/shioru/blob/main/source/languages)файлове на това хранилище.
- Система на нива (ниво и опит)
- Поддръжка за персонализиране на известията на сървъра
- Можете да говорите, като напишете `@Shioru` , последвано от съобщението, което искате да комуникирате.
- Може да се използва командата на приложението (/).
- จำลองระบบฐานข้อมูลสำหรับทดสอบ
- รองรับการทำงานบน Shard
[ / ] ทำงานบน [Discord.js](https://discord.js.org/) v14 \
[ / ] อ่านง่าย ใช้งานง่ายและประสิทธิภาพสูง \
[ / ] สามารถปรับแต่งสิ่งที่ต้องการได้หลากหลายรายการ \
[ / ] มีคำสั่งทั้งหมดรวมถึงคำสั่งย่อยที่พร้อมใช้งานมากกว่า 100+ คำสั่ง \
[ / ] สามารถเล่นเพลงได้ทั้งจาก [YouTube](https://www.youtube.com/), [Spotify](https://www.spotify.com/), [SoundCloud](https://soundcloud.com/) และอีก [900+ เว็บไซต์](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)พร้อมทั้งมีระบบเล่นเพลงต่อโดยอัตโนมัติ \
[ / ] รองรับหลายภาษา ซึ่งคุณสามารถตรวจสอบภาษาที่รองรับได้จาก[ไฟล์ภาษา](https://github.com/Maseshi/Shioru/blob/main/source/configs/languages.json)ของที่เก็บนี้ \
[ / ] ระบบระดับชั้น (เลเวลและค่าประสบการณ์) \
[ / ] รองรับการปรับแต่งการแจ้งเตือนของเซิร์ฟเวอร์ \
[ / ] สามารถพูดคุยได้โดยการพิมพ์ `@Shioru` ตามด้วยข้อความที่ต้องการสื่อสาร \
[ / ] รองรับการทำงานบน Shard หรือรองรับการทำงานในหลากหลายกิลด์ \
[ / ] สามารถใช้งานคำสั่งแอปพลิเคชั่น (/) ได้ \
[ / ] จำลองระบบฐานข้อมูลสำหรับทดสอบ

и много други интересни функции...

## 🧩 ข้อกำหนดเบื้องต้น

- [Node.js](https://nodejs.org/) v20.6.0 หรือมากกว่า
- [Python](https://www.python.org/downloads/) v3.8.0 หรือมากกว่า
- [Java](https://www.oracle.com/java/technologies/downloads/) v11.0.0 หรือมากกว่า
- [Firebase Tools](https://firebase.google.com/docs/cli)
- [Build Tools](https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2022)
- [Node.js](https://nodejs.org/) v20.6.0 หรือสูงกว่า
- [Firebase Tools](https://firebase.google.com/docs/cli) (ต้องการ [Java](https://www.oracle.com/java/technologies/downloads/) v11.0.0 หรือสูงกว่า)
- [Build Tools](https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2022) (ต้องการ [Python](https://www.python.org/downloads/) v3.8.0 หรือสูงกว่า)
- [FFmpeg](https://www.ffmpeg.org/download.html)
- [Git](https://git-scm.com/downloads)

Expand Down Expand Up @@ -106,46 +104,45 @@
- Firebase จะให้ข้อมูลเกี่ยวกับการกำหนดค่าแก่คุณ นำค่าเหล่านี้ไปใช้กับไฟล์ `.env`
- Отидете на **създаване > [база данни в реално време](https://console.firebase.google.com/u/0/project/_/database/data)** , за да създадете база данни за съхранение.

## 🪛 การพัฒนา
## 🔥 เริ่มต้นใช้งาน

- เปิดเทอร์มินัลแล้วรัน `npm run emulators` เพื่อจำลองระบบฐานข้อมูลใน**โหมดพัฒนา**
- เปิดเทอร์มินัลหน้าใหม่แล้วรันคำสั่ง `npm run dev`
มีหลากหลายทางเลือกให้เปิดใช้งานได้ หากคุณใช้ [Visual Studio Code](https://code.visualstudio.com/) คุณสามารถเลือกวิธีการทำงานได้ทันทีผ่านแท็บ Run and Debug (<kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>D</kbd>) ส่วนการทำงานอื่น ๆ ให้ดูที่ Tasks (<kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>B</kbd> และ <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> พิมพ์ `>Tasks: Run Task`)

> [!NOTE] เมื่อคุณเข้าสู่โหมดการพัฒนา คุณลักษณะบางอย่างอาจถูกปิดใช้งาน เช่น การส่งสถิติ การอัปเดตข้อมูล เป็นต้น
### 🪛 พัฒนา

## ☕ จำลอง
- เปิดเทอร์มินัลแล้วรันคำสั่ง `npm run dev`

### ☕ จำลอง

ทดสอบการใช้งานจริงด้วยการทำงานที่คล้ายกับการใช้งานจริง โดยระบบจะคำนวณการแยกเศษของการทำงานตามจำนวนของกิลด์โดยอัตโนมัติ

- เปิดเทอร์มินัลแล้วรัน `npm run emulators` เพื่อจำลองระบบฐานข้อมูลใน**โหมดจำลอง**
- เปิดเทอร์มินัลหน้าใหม่แล้วรันคำสั่ง `npm run serve`
- เปิดเทอร์มินัลแล้วเพิ่มตัวแปรสภาพแวดล้อมทั้งหมดที่จำเป็น
- สำหรับ Windows ใช้คำสั่ง `set variable=example`
- สำหรับ Linux หรือ MacOS ใช้คำสั่ง `export variable=example`
- รันคำสั่ง `npm run serve`

> [!NOTE] คุณจะเข้าสู่โหมดการพัฒนาโดยอัตโนมัติเนื่องจากเป็นการจำลองการใช้งานจริง ทำให้คุณสมบัติบางอย่างอาจไม่ทำงาน
> [!NOTE] คุณจะเข้าสู่โหมดการพัฒนาโดยอัตโนมัติเนื่องจากเป็นการจำลองการใช้งานจริง ข้อมูลทั้งหมดจะไม่ได้รับการบันทึก

## 🍵 ใช้งานจริง
### 🍵 ใช้งานจริง

สำหรับการใช้งานจริงสามารถใช้คำสั่งหรือชุดคำสั่งที่เตรียมไว้ได้ตามปกติ ดังนี้:

- บน Linux หรือ MacOS

```sh
# with command file (recommend)

sh start.sh || sudo sh start.sh

# or with call command
# or

npm start
```

- บน Windows

```bat
@REM with command file (recommend)

./start.bat

@REM or with call command
@REM or

npm start
```
Expand All @@ -154,25 +151,20 @@

การดำเนินการนี้จำเป็นต้องมี [Docker](https://www.docker.com/products/docker-desktop/)

- ใช้คำสั่ง `npm run docker:build` แล้วรอให้ทำงานเสร็จทั้งหมด
- จากนั้นเปิดโปรแกรม Docker แล้วสั่งรันพร้อมกับใส่ข้อมูลสภาพแวดล้อมที่จำเป็น (env) หรือใช้คำสั่ง `npm run docker:run` แล้วรอจนบอททำงาน
- เปิดเทอร์มินัลแล้วเพิ่มตัวแปรสภาพแวดล้อมทั้งหมดที่จำเป็น
- สำหรับ Windows ใช้คำสั่ง `set variable=example`
- สำหรับ Linux หรือ MacOS ใช้คำสั่ง `export variable=example`
- ทำการสร้างอิมเมจโดยใช้คำสั่ง `npm run docker:build` หรือ `npm run docker:build:serve` สำหรับโหมดจำลองแล้วรอจนกว่าจะเสร็จสิ้นกระบวนการ
- หลังจากสร้างอิมเมจสำเร็จแล้วให้รันโดยใช้คำสั่ง `npm run docker:run` หรือ `npm run docker:build:serve` สำหรับโหมดจำลอง

> [!TIP] คุณสามารถตรวจสอบการทำงานได้โดยใช้คำสั่ง `docker ps -a`
[เรียนรู้เพิ่มเติมเกี่ยวกับคำสั่ง Docker](https://docs.docker.com/reference/)

## ⚡ แก้ไขปัญหาอย่างรวดเร็ว

- `gyp ERR! stack Error: not found: make`

ปัญหานี้อาจเกิดจาก **Build Tools** ติดตั้งไม่ถูกต้องหรืออาจยังไม่ได้ติดตั้ง วิธีแก้ไขปัญหานี้ให้ดูที่ส่วน[การติดตั้ง Build Tools](#1-ติดตั้ง-build-tools)

- `GrpcConnection RPC 'Write' stream 0x58a118ce error. Code: 14 Message: 14 UNAVAILABLE: No connection established. Last error: connect ECONNREFUSED 127.0.0.1:8080`

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

```bat
npm run emulators
```

## 🌐 ปรับปรุงการแปลภาษา

и много други интересни функции...
Expand Down
Loading
Loading