From e0a9b18f45858829f88cbe20611aaf696fc5bf6a Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Fri, 16 Aug 2024 22:35:46 -0400 Subject: restore support for volume commands --- src/commands/meme/history.rs | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) (limited to 'src/commands/meme/history.rs') diff --git a/src/commands/meme/history.rs b/src/commands/meme/history.rs index 1acb019..270ae9a 100644 --- a/src/commands/meme/history.rs +++ b/src/commands/meme/history.rs @@ -1,16 +1,3 @@ -use crate::{ - commands::game::get_user_id, - db::{ - self, - connection, - InvocationRecord, - Meme, - Metadata, - }, - util, - PoiseContext, - CONFIG, -}; use chrono::TimeZone; use diesel::{ result::Error as DieselError, @@ -34,7 +21,20 @@ use timeago::{ Formatter, TimeUnit, }; -use windows::core::s; + +use crate::{ + commands::game::get_user_id, + config::CONFIG, + db::{ + self, + connection, + InvocationRecord, + Meme, + Metadata, + }, + util, + PoiseContext, +}; lazy_static! { static ref TIME_FORMATTER: Formatter = { @@ -393,10 +393,7 @@ pub async fn query(ctx: PoiseContext<'_>, rest: util::RestVec) -> anyhow::Result use regex::Regex; use serenity::model::id::UserId; - use crate::{ - db, - CONFIG, - }; + use crate::db; lazy_static! { static ref CREATOR_REGEX: Regex = Regex::new(r"(?i)(?:by|creator)=(.*)").unwrap(); -- cgit v1.3.1