Furthered fk_around a bit. Breaks very bad.
This commit is contained in:
parent
9ac93d7cb3
commit
a5a2896059
|
|
@ -22,7 +22,7 @@ async fn main() {
|
|||
init_logger().unwrap();
|
||||
// TODO: Check that this is actually what we want
|
||||
task::spawn(main_scheduler_loop(
|
||||
time::interval(time::Duration::from_secs(1)),
|
||||
time::interval(time::Duration::from_secs(5)),
|
||||
event_context.clone(),
|
||||
));
|
||||
discord_main_loop(event_context).await;
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@
|
|||
|
||||
use crate::votes::EventHolder;
|
||||
use chrono::{DateTime, Local, NaiveDate};
|
||||
use poise::serenity_prelude::{CacheHttp, ChannelId};
|
||||
use serde::Serialize;
|
||||
|
||||
/// The main scheduler waiting and dispatch loop.
|
||||
///
|
||||
|
|
@ -40,9 +42,17 @@ fn fk_around(ev_ctx: &EventHolder) {
|
|||
"In the fk_around function ({}):",
|
||||
Local::now() // &ev_ctx
|
||||
);
|
||||
if let Some(discord_ctx) = ev_ctx.discord_ctx.lock().unwrap().as_mut() {
|
||||
println!("Fking around : {:#?}", discord_ctx);
|
||||
}
|
||||
// if let Some(discord_ctx) = ev_ctx.discord_ctx.lock().unwrap().as_mut() {
|
||||
// println!("Fking around : {:#?}", discord_ctx);
|
||||
// let _ = discord_ctx
|
||||
// .http()
|
||||
// .send_message(
|
||||
// ChannelId::new(1300786300143800351),
|
||||
// Vec::new(),
|
||||
// &"This is a message".to_owned(),
|
||||
// )
|
||||
// .await;
|
||||
// }
|
||||
}
|
||||
|
||||
/// The `watchdog_update` function updates the state of the watchdog and executes the necessary tasks.
|
||||
|
|
|
|||
Loading…
Reference in New Issue