ZiziBot.NETOfficial repository for Zizi.Bot, written in .NET
Zizi Bot .NET
Official repository WinTenDev Zizi Bot, written in .NET
Status
CI/CD
Preparation
- .NET 5 SDK
- MySQL/MariaDB
- Nginx or OpenLiteSpeed for reverse proxy (Optional)
- ClickHouse (Optional, for analytic)
- GoogleDrive API (Optional)
- Uptobox Token (For mirror)
- 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
评论