2.1.0 • Published 5 years ago
@mirai-bot/cli v2.1.0
Mirai Bot
Start
Install cli tool
yarn global add @mirai-bot/cliCreate a project
mirai-bot new --name botConfig
Config the bot
copy config.example.yaml to config.yml
and change the config
Build & Start
mirai-bot buildmirai-bot start -dOther issues
Login fail
If you use your account on this device first time, it may have some problem when login. Please use
mirai-bot interactiveto start a interactive mirai instance, follow the steps to login manually
development
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
Add
remote:
host: 101.200.191.30in the config.yml of development environment
and start with
mirai-bot start --devAlso you can use
mirai-bot plugin [name]to add a new plugin.
TODO: How to write a plugin