Giter Site home page Giter Site logo

orangemilk-bot-next's Introduction

OrangeMilk-Bot-Next

基于 NoneBot2 实现的 Bot 库

一、如何开始

1. 克隆本仓库

使用 git clone 拉取代码

2. 安装 NoneBot2 CLI 工具

参考 NoneBot2 官网 文档安装 pipxnb-cli 等必要的工具

3. 安装虚拟环境

推荐使用 virtualenv 而不是 conda 等,原因是:

  • 此项目单独占用的环境,不必再其他地方发现(例如它不必被展示在 conda env list
  • nb-cli 工具对 virtualenv 适配较好

安装 virtualenv

pip install virtualenv

先进入本项目目录,然后创建虚拟环境,推荐命名为 .venv,因为 nb-cli 默认以 .venv 作为虚拟环境目录

virtualenv .venv

使能环境

# Linux 环境
source ./.venv/bin/activate

# Windows Powershell
./.venv/Scripts/activate

# Windows CMD (命令提示符)
.venv\Scripts\activate

4. 填写配置文件

1、.env.prod

DRIVER=~fastapi
PORT=1281

# 填写机器人主人的QQ号
# 列表,填入的 QQ 号会用作 Debug 插件的测试号
master_qqs=[1234567890, 1234567891]

5. 运行项目

使用 nb run 运行此项目

orangemilk-bot-next's People

Contributors

augtons avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.