Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/toyobayashi/bot
https://github.com/toyobayashi/bot
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/toyobayashi/bot
- Owner: toyobayashi
- Created: 2020-04-02T11:00:59.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-04-07T09:32:23.000Z (over 4 years ago)
- Last Synced: 2024-10-10T20:59:09.865Z (28 days ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bot
一个很敷衍的 QQ 机器人。
环境要求:最近版本的 Node.js
``` bash
$ git clone https://github.com/toyobayashi/bot
$ cd ./bot$ npm install
$ npm install -g pm2
$ npm start
````config.js` 配置文件自己新建哦
``` js
module.exports = {
accessToken: 'abc', // node server -> cqhttp 用的
secret: 'abc', // cqhttp -> node server 用的
api: 'http://127.0.0.1:5700', // cqhttp 服务
developerQQ: 123456789, // 开发者 QQ
loliconKey: 'xxx', // 不解释
allow: {
discussGroups: null, // 也可以是 number[],null 不做限制
groups: null, // 也可以是 number[],null 不做限制
requestFriends: null, // 也可以是 number[],null 不做限制
}
}
```