Add version as status

This commit is contained in:
August 2024-10-05 00:38:33 -04:00
parent b45dc20529
commit 4edf1e5695
Signed by: shibedrill
GPG Key ID: 5FE0CB25945EFAA2

View File

@ -3,6 +3,7 @@
// For secure credential handling
use dotenvy::dotenv;
use poise::serenity_prelude::ActivityData;
// Poise and Serenity - Framework and API prelude
use poise::serenity_prelude as serenity;
@ -117,6 +118,7 @@ async fn main() {
// Build client
let mut client = serenity::ClientBuilder::new(token, intents)
.framework(framework)
.activity(ActivityData::custom(format!("Version {}!", env!("CARGO_PKG_VERSION"))))
.await
.unwrap_or_else(|e| {
error!("Building client failed: {}", e);