Add /version command #62

Closed
opened 2026-02-25 22:05:09 +03:00 by NiXTheDev · 1 comment
NiXTheDev commented 2026-02-25 22:05:09 +03:00 (Migrated from github.com)

Overview

Add a /version command that displays the current bot version to users.

Implementation

1. Create src/version.ts

export const VERSION = "0.2.0";
export const COMMIT = "abc1234";
export const RELEASED_AT = "2026-02-25";
export const CHANGES = "...";

2. Add /version command to index.ts

Reply with:

I am currently on version  ()
This version was released on 

It includes the following changes:

3. CI Integration

CI updates version.ts on each release with the latest info from git and GitHub releases.

Notes

  • No persistence required
  • Version info injected at build time
  • Simple and informative output
## Overview Add a `/version` command that displays the current bot version to users. ## Implementation ### 1. Create src/version.ts ```ts export const VERSION = "0.2.0"; export const COMMIT = "abc1234"; export const RELEASED_AT = "2026-02-25"; export const CHANGES = "..."; ``` ### 2. Add /version command to index.ts Reply with: ``` I am currently on version () This version was released on It includes the following changes: ``` ### 3. CI Integration CI updates version.ts on each release with the latest info from git and GitHub releases. ## Notes - No persistence required - Version info injected at build time - Simple and informative output
NiXTheDev commented 2026-02-26 15:55:58 +03:00 (Migrated from github.com)

Implemented in commit 810a12c

Implemented in commit 810a12c
Sign in to join this conversation.
No description provided.