https://github.com/fromsko/msgbot
Discord 机器人 Demo
https://github.com/fromsko/msgbot
Last synced: 12 months ago
JSON representation
Discord 机器人 Demo
- Host: GitHub
- URL: https://github.com/fromsko/msgbot
- Owner: Fromsko
- License: mit
- Created: 2023-08-20T10:55:37.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-05T11:19:16.000Z (over 2 years ago)
- Last Synced: 2025-06-07T11:34:53.790Z (about 1 year ago)
- Language: Python
- Size: 13.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Discord_demo
> msgBot 一个 demo 级案例

## 使用
> msgBot/config/config.json 中填写 token
>
> 国内 win 下开发需要设置 proxy
1. 安装依赖
```bash
pip install discord.py
py main.py
```
2. 运行成功 (gateway 显示 Session ID 代表运行成功)

3. 同步服务器
```bash
!synccommands
```

4. 命令反馈

## 实现
- ping '/ping'
- 随机一言 '/onesay'
- 同步官方命令 '!synccommands'
## 感谢
- [Discord.py](https://github.com/Rapptz/discord.py)
- [大佬讲解](https://www.bilibili.com/video/BV1Wp4y1V7Zg/?spm_id_from=333.337.top_right_bar_window_history.content.click)