added way too many features for a single commit. Who cares though?
This commit is contained in:
+11
-3
@@ -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(());
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user