Skip to content

Commit e0d9117

Browse files
committed
fix dynamic versioning
1 parent b0e3308 commit e0d9117

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
$major = $date.Year - 2000 + 200
2828
$minor = $date.Month
2929
$build = (New-TimeSpan -Start (Get-Date -Year 2000 -Month 1 -Day 1) -End $date).Days
30-
$revision = "{0:D5}" -f [int]($date.TimeOfDay.TotalSeconds)
30+
$revision = "{0:D5}" -f [int]($date.TimeOfDay.TotalSeconds/2)
3131
$version = "$major.$minor.$build.$revision"
3232
if ('${{ github.ref }}' -notlike 'refs/tags/v*') {
3333
$version = "$version-beta"

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,21 @@
66

77
**ZiziBot.TelegramBot** is a bot framework designed to help with command-based bot development. Some samples can be found in the **Sample** project.
88

9-
This framework supports both Polling and Webhook modes in AutoMode, which is enabled by default. This means that during local development, it runs using Polling, and after deployment, it automatically switches to Webhook mode. Simply fill in the required configuration in `appsettings.json` to get started.
9+
This framework supports both Polling and Webhook modes.
10+
You can specify the mode in `appsettings.json` using the `EngineMode` property.
11+
12+
### Auto Mode
13+
By default, `EngineMode` is set to `Auto`.
14+
This means that during local development, it runs using Polling, and after deployment, it automatically switches to Webhook mode.
15+
Simply fill in the required configuration in `appsettings.json` to get started.
1016

1117
Please note that this is a very early-stage project, so there are no guarantees against breaking changes in the future.
1218

1319
This project is inspired by [VodemSharp/Allowed.Telegram.Bot](https://github.com/VodemSharp/Allowed.Telegram.Bot).
1420

21+
## Framework Architecture
22+
All bot commands are inherited from the `BotCommandController` class. This class provides a `Context` property that allows you to access the current request and send a response. To better understand how to create a command, please refer to the sample project.
23+
1524
## Demo project
1625

1726
1. [ZiziBot-Engine](https://github.com/azhe403/ZiziBot-Engine)

0 commit comments

Comments
 (0)