Skip to content

Commit

Permalink
feat: version command
Browse files Browse the repository at this point in the history
  • Loading branch information
fengkx committed Apr 14, 2021
1 parent 20e473e commit b1c3b61
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Telegraf from 'telegraf';
import { fork } from 'child_process';
import { join } from 'path';
import * as pkg from '../package.json';
import send from './utils/send';
import logger from './utils/logger';
import errors from './utils/errors';
Expand Down Expand Up @@ -250,6 +251,10 @@ bot.action(
rss
);

bot.command('version', async (ctx) => {
ctx.reply(`${pkg.version}`);
});

bot.launch();

async function startFetchProcess(restartTime: number): Promise<void> {
Expand Down

0 comments on commit b1c3b61

Please sign in to comment.