Add version as status
This commit is contained in:
parent
b45dc20529
commit
4edf1e5695
@ -3,6 +3,7 @@
|
|||||||
// For secure credential handling
|
// For secure credential handling
|
||||||
use dotenvy::dotenv;
|
use dotenvy::dotenv;
|
||||||
|
|
||||||
|
use poise::serenity_prelude::ActivityData;
|
||||||
// Poise and Serenity - Framework and API prelude
|
// Poise and Serenity - Framework and API prelude
|
||||||
use poise::serenity_prelude as serenity;
|
use poise::serenity_prelude as serenity;
|
||||||
|
|
||||||
@ -117,6 +118,7 @@ async fn main() {
|
|||||||
// Build client
|
// Build client
|
||||||
let mut client = serenity::ClientBuilder::new(token, intents)
|
let mut client = serenity::ClientBuilder::new(token, intents)
|
||||||
.framework(framework)
|
.framework(framework)
|
||||||
|
.activity(ActivityData::custom(format!("Version {}!", env!("CARGO_PKG_VERSION"))))
|
||||||
.await
|
.await
|
||||||
.unwrap_or_else(|e| {
|
.unwrap_or_else(|e| {
|
||||||
error!("Building client failed: {}", e);
|
error!("Building client failed: {}", e);
|
||||||
|
Loading…
Reference in New Issue
Block a user