add version command and more tests
This commit is contained in:
@@ -24,6 +24,8 @@ enum Command {
|
||||
Top,
|
||||
#[command(description = "get the server time")]
|
||||
Time,
|
||||
#[command(description = "get the bot version")]
|
||||
Version,
|
||||
}
|
||||
|
||||
/*#[tokio::main]
|
||||
@@ -117,6 +119,7 @@ async fn answer(bot: Bot, msg: Message, command: Command) -> anyhow::Result<()>
|
||||
)
|
||||
.await?
|
||||
}
|
||||
Command::Version => bot.send_message(msg.chat.id, "0.2.5").await?,
|
||||
};
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user