A BUUOJ BOT rebuild on mirai (Developing)
.
├── bot front-end of bot
│ ├── deploy
│ ├── src
│ │ ├── bot core of bot
│ │ └── plugins plugins of bot
├── mirai back-end ob bot
│ ├── config.example.txt example config file
│ ├── data data of mirai-core
│ ├── images base dir of mirai-api-http image
│ ├── setting.yml mirai-api-http config file
│ └── src mirai source
- Docker
- Docker Compose
- nodejs
If you don't have yarn, install it by npm install -g yarn
, (or change script by yourself.
yarn
# or use production mode if you only want to deploy it
# yarn --production
yarn run config
yarn run build
docker-compose up -d
docker-compose logs -f
- calendar
- Command:
calendar
Show the recent or now competitions
- Command:
- cmd
- Command:
exec
Give you a chance to try to break thevm2
- Command:
- egg
- Command:
sucker
Teach you how to be a real sucker
- Command:
- groupCmdManage
- Command
GroupCmd
Set special rule for commands GroupCmd list | (set {cmd} {rule}) Rule:- 0b00000001 friend
- 0b00000010 group member
- 0b00000100 group admin
- 0b00001000 group owner
- 0b00010000 temp chat
- Command
- monitor
- Command:
npm_monitor on|off
Tell you if npm advisories updated
- Command:
- rank
- Command:
rank id
Tell your rank on BUUOJ - Command:
score id
Tell you that you are lazy dog
- Command:
- recallMonitor monitor the recall event and sometimes prevent it
- repeater repeater repeater repeater repeater repeater
- In the first build or in some cases, the login will fail and you need to enter the verification code.
- Because Mirai is in the development stage, there may be bugs such as not receiving information
If you find some issue about the bot, see the issues below. Maybe you can find some useful information.