added way too many features for a single commit. Who cares though?

This commit is contained in:
2025-01-30 22:36:56 +01:00
parent 9c8c57bbac
commit be22c13814
4 changed files with 115 additions and 9 deletions
+11 -3
View File
@@ -1,12 +1,12 @@
use crate::{Data, Error};
use poise::serenity_prelude as serenity;
use poise::serenity_prelude::{self as serenity, ActivityData};
use std::future::Future;
use std::pin::Pin;
pub fn event_handler<'a>(
_ctx: &'a serenity::Context,
ctx: &'a serenity::Context,
event: &'a serenity::FullEvent,
_framework: poise::FrameworkContext<'a, Data, Error>,
_data: &'a Data,
@@ -18,7 +18,15 @@ pub fn event_handler<'a>(
data_about_bot.user.name,
data_about_bot.user.id
);
let file_text = std::fs::read_to_string("./data/status.txt").unwrap();
let custom_activity = ActivityData::custom(file_text);
// TODO: make custom rich presence
//let playing_activity
ctx.online();
ctx.set_activity(Some(custom_activity));
}
Ok(())
return Ok(());
})
}