Bot Discord game Soi Má (Werewolf) được viết bằng TypeScript với Discord.js v14 <(")
🔗 Invite • 🚀 Commands • ⚙️ Installation • 📝 Configuration • 📄 License
Warning
📢
EN: This application is currently distributed for free on GitHub and is open source under the Shiroku Bot License.
🚫 Do not modify or redistribute it with advertising, or use it for commercial purposes.
VI: Ứng dụng này hiện đang được phát hành miễn phí trên GitHub và là mã nguồn mở theo Giấy phép Shiroku Bot.
🚫 Không được chỉnh sửa hoặc phân phối lại với mục đích quảng cáo, hoặc sử dụng cho mục đích thương mại.
Tip
Vào server Discord để được hỗ trợ về bot
| Command | Description | Permission |
|---|---|---|
/masoi-create |
Tạo phòng chơi mới | Everyone |
/clear-room |
Xóa phòng chơi hiện tại | Host/Admin |
/status |
Xem trạng thái phòng và người chơi | Everyone |
/settings |
Cài đặt game (roles, time, etc.) | Host/Admin |
| Command | Description | Permission |
|---|---|---|
/masoi-join |
Tham gia phòng chơi | Everyone |
/masoi-leave |
Rời khỏi phòng chơi | Everyone |
/masoi-kick @user |
Kick người chơi khỏi phòng | Host/Admin |
| Command | Description | Permission |
|---|---|---|
/masoi-start |
Bắt đầu game Ma Sói | Host/Admin |
Xem đầy đủ slash command tại thư mục /commands
- Node.js v18.0.0 hoặc cao hơn
- npm hoặc yarn
- Discord Bot Token (Tạo bot tại đây)
git clone https://github.com/MegumiKatou02/werewolf-discord.git
cd werewolf-discord-bot
npm install
# or
yarn install
cp .env.example .env
npm run dev:deploy
# or
npx tsx deploy-commands.ts
npm run dev
# or
npm run dev:watchBot cần các permissions sau trên Discord:
- View Channels
- Send Messages
- Send Messages in Threads
- Embed Links
- Attach Files
- Read Message History
- Use Slash Commands
- Add Reactions
- Use External Emojis
- Everything
📦 werewolf-discord-bot
├── 📂 commands/ # Slash commands
├── 📂 core/ # Game logic & room management
├── 📂 types/ # TypeScript type definitions
├── 📂 utils/ # Utility functions
├── 📂 data/ # Roles data
...
├── 📂 dist/ # Compiled JavaScript
├── 📄 package.json # Dependencies & scripts
├── 📄 tsconfig.json # TypeScript configuration
└── 📄 .env.example # Environment template
npm run dev # Chạy với file Javascript sau khi build
npm run deploy # Deploy command và chạy file Javascript
npm run dev:ts # Chạy file ts mà không cần build
npm run dev:watch # Chạy file ts và có hot-reload
npm run lint # Check code style- Fork repository này
- Tạo branch cho feature:
git checkout -b feature/amazing-feature - Code và test kỹ
- Commit:
git commit -m 'Add amazing feature' - Push:
git push origin feature/amazing-feature - Tạo Pull Request
Đọc file Shiroku Bot License
© 2025 Yukiookii. All rights reserved.