ZiziBot.NET

Official repository for Zizi.Bot, written in .NET
授权协议 MIT License
开发语言 Python
所属分类 应用工具、 IM/聊天/语音工具
软件类型 开源软件
地区 不详
投 递 者 南门英飙
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Zizi Bot .NET

Official repository WinTenDev Zizi Bot, written in .NET

Status

CI/CD

Preparation

  1. .NET 5 SDK
  2. MySQL/MariaDB
  3. Nginx or OpenLiteSpeed for reverse proxy (Optional)
  4. ClickHouse (Optional, for analytic)
  5. GoogleDrive API (Optional)
  6. Uptobox Token (For mirror)
  7. Datadog (Optional, for logging)

Run Development

  • Clone this repo and open .sln using your favorite IDE or Text Editor.
  • Install MySQL/MariaDB and create database e.g. zizibot.
  • Copy appsettings.example.json to appsettings.jon and fill some property.
  • Press Start in your IDE to start debugging or via CLI.
  • Your bot has ran local as Development using Poll mode.

Run Production

  • Install .NET 5 ASP.NET Runtime
  • Server with domain name include HTTPS support (e.g https://yoursite.co.id)
  • Run dotnet publish and upload your binary.
    If you use Rider, you can easily select Publish profile and Play to publish.
  • Setup proxy for Web Server with localhost:PORT, here example.
  • Launch your binary, then WebHook will automatically ensured (depending your EngineMode config on appsettings.json).

Run in Docker (Production)

  • docker-compose -f docker-compose.yml build
  • docker-compose -f docker-compose.yml up -d --scale zizi-bot=4 --no-recreate

Currently run on Zizi Bot and under beta in Zizi Beta Bot

相关阅读

相关文章

相关问答

相关文档