Add version as status
This commit is contained in:
parent
b45dc20529
commit
4edf1e5695
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user