NPM packages
Install cli tool
yarn global add @mirai-bot/cli
Create a project
mirai-bot new --name bot
Config the bot
copy config.example.yaml
to config.yml
and change the config
mirai-bot build
mirai-bot start -d
If you use your account on this device first time, it may have some problem when login. Please use
mirai-bot interactive
to start a interactive mirai instance, follow the steps to login manually
You can use an existing bot instance and attach it to develop your plugin faster
Setup a full bot docker (including mirai
and redis
) and expose all the port
And use the same config file in your development environment
And dd
remote:
host: localhost_or_remote_ip
in the config.yml
of development environment
and start with
mirai-bot start --dev
Also you can use
mirai-bot plugin [name]
to add a new plugin.
TODO: How to write a plugin