i kinda forgot to commit. Anyways, i made the config into toml, edited readme, and... refactored code...
This commit is contained in:
+2
-4
@@ -19,11 +19,9 @@ pub fn event_handler<'a>(
|
||||
data_about_bot.user.id
|
||||
);
|
||||
|
||||
let file_text = std::fs::read_to_string("./data/status.txt").unwrap();
|
||||
let file_text = std::fs::read_to_string("./cfg/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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user