diff --git a/Cargo.lock b/Cargo.lock index 905eac2..7be7fe6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1175,7 +1175,7 @@ dependencies = [ [[package]] name = "reminder_rs" -version = "1.1.7" +version = "1.1.8" dependencies = [ "Inflector", "async-trait", diff --git a/Cargo.toml b/Cargo.toml index fc3a4fd..fdea4aa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "reminder_rs" -version = "1.1.7" +version = "1.1.8" authors = ["jellywx "] edition = "2018" diff --git a/src/commands/reminder_cmds.rs b/src/commands/reminder_cmds.rs index baeb0f9..51f3d06 100644 --- a/src/commands/reminder_cmds.rs +++ b/src/commands/reminder_cmds.rs @@ -404,6 +404,8 @@ WHERE channels.guild_id = (SELECT id FROM guilds WHERE guild = ?) AND channels.channel = ? AND FIND_IN_SET(reminders.enabled, ?) +ORDER BY + reminders.time LIMIT ? ", @@ -433,6 +435,8 @@ ON WHERE channels.channel = ? AND FIND_IN_SET(reminders.enabled, ?) +ORDER BY + reminders.time LIMIT ? ", @@ -555,7 +559,7 @@ WHERE count + 1, reminder.content, reminder.channel, - time.format("%Y-%m-%D %H:%M:%S") + time.format("%Y-%m-%d %H:%M:%S") ) }); diff --git a/src/commands/todo_cmds.rs b/src/commands/todo_cmds.rs index cb18fc6..f8eadbb 100644 --- a/src/commands/todo_cmds.rs +++ b/src/commands/todo_cmds.rs @@ -380,7 +380,6 @@ impl Execute for Result { } #[command] -#[permission_level(Managed)] async fn todo_user(ctx: &Context, msg: &Message, args: String) { let mut split = args.split(' ');