QoL
* Made todo added responses ephemeral if /settings ephemeral is on * Enabled systemd watchdog * Move metrics to rocket
This commit is contained in:
@ -22,9 +22,9 @@ impl Recordable for Options {
|
||||
CreateEmbed::new()
|
||||
.title("Confirmations ephemeral")
|
||||
.description(concat!(
|
||||
"Reminder confirmations will be sent privately, and removed when your client",
|
||||
" restarts."
|
||||
))
|
||||
"Reminder and todo confirmations will be sent privately, and removed when ",
|
||||
"your client restarts."
|
||||
))
|
||||
.color(*THEME_COLOR),
|
||||
),
|
||||
)
|
||||
|
@ -22,8 +22,8 @@ impl Recordable for Options {
|
||||
CreateEmbed::new()
|
||||
.title("Confirmations public")
|
||||
.description(concat!(
|
||||
"Reminder confirmations will be sent as regular messages, and won't be ",
|
||||
"removed automatically."
|
||||
"Reminder and todo confirmations will be sent as regular messages, and",
|
||||
" won't be removed automatically."
|
||||
))
|
||||
.color(*THEME_COLOR),
|
||||
),
|
||||
|
@ -1,3 +1,4 @@
|
||||
use poise::CreateReply;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::{
|
||||
@ -33,7 +34,13 @@ impl Recordable for Options {
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
ctx.say("Item added to todo list").await?;
|
||||
let ephemeral = ctx
|
||||
.guild_data()
|
||||
.await
|
||||
.map_or(false, |gr| gr.map_or(false, |g| g.ephemeral_confirmations));
|
||||
|
||||
ctx.send(CreateReply::default().content("Item added to todo list").ephemeral(ephemeral))
|
||||
.await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
@ -1,6 +1,8 @@
|
||||
use poise::CreateReply;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::{
|
||||
models::CtxData,
|
||||
utils::{Extract, Recordable},
|
||||
Context, Error,
|
||||
};
|
||||
@ -26,7 +28,13 @@ impl Recordable for Options {
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
ctx.say("Item added to todo list").await?;
|
||||
let ephemeral = ctx
|
||||
.guild_data()
|
||||
.await
|
||||
.map_or(false, |gr| gr.map_or(false, |g| g.ephemeral_confirmations));
|
||||
|
||||
ctx.send(CreateReply::default().content("Item added to todo list").ephemeral(ephemeral))
|
||||
.await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
@ -1,6 +1,8 @@
|
||||
use poise::CreateReply;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::{
|
||||
models::CtxData,
|
||||
utils::{Extract, Recordable},
|
||||
Context, Error,
|
||||
};
|
||||
@ -27,7 +29,13 @@ impl Recordable for Options {
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
ctx.say("Item added to todo list").await?;
|
||||
let ephemeral = ctx
|
||||
.guild_data()
|
||||
.await
|
||||
.map_or(false, |gr| gr.map_or(false, |g| g.ephemeral_confirmations));
|
||||
|
||||
ctx.send(CreateReply::default().content("Item added to todo list").ephemeral(ephemeral))
|
||||
.await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
Reference in New Issue
Block a user