remove reactions from messages older than n days
This commit is contained in:
parent
a8d6a2b8d7
commit
94b12a1069
9 changed files with 86 additions and 18 deletions
|
@ -37,7 +37,7 @@ async fn setup(
|
|||
_: &serenity::Ready,
|
||||
framework: &Framework<Data, Error>,
|
||||
) -> Result<Data, Error> {
|
||||
let config = Config::new_from_env();
|
||||
let config = Config::from_env()?;
|
||||
|
||||
let storage = if let Some(url) = &config.bot.redis_url {
|
||||
Some(Storage::from_url(url)?)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue