Home

Awesome

nonestrap

中文文档在这里~

Another NoneBot2 project bootstrap tool.

Installation

Install nonestrap via this command:

pip install nonestrap

Usage

# install bootstrap file into ./mybot/ with onebot-v11 adapter and without any
# extra plugin, under a virtual environment.
nonestrap -a onebot-v11 mybot

# install bootstrap file into ./mybot/ with both onebot-v11 and ding adapter
# and APScheduler, under a virtual environment
nonestrap -a onebot-v11 -a ding mybot nonebot-plugin-apscheduler

# like the first one but with production .env file.
nonestrap -a onebot-v11 -e prod mybot

# like the first one but without creating a new virtual environment.
# use it if you have already prepared a virtual environment.
nonestrap -a onebot-v11 -V mybot

# like the first one but keeps bot.py instead of bot.pyc
nonestrap -a onebot-v11 -C mybot