Simplify the list/show instruction
This commit is contained in:
parent
9d72fbdee5
commit
a81f012c0c
1 changed files with 10 additions and 16 deletions
|
@ -151,7 +151,6 @@ namespace RhinoReminds
|
||||||
|
|
||||||
case "list":
|
case "list":
|
||||||
case "show":
|
case "show":
|
||||||
if (parts.Select((n) => n.ToLower()).Contains("all")) {
|
|
||||||
// Filter by reminders for this user.
|
// Filter by reminders for this user.
|
||||||
IEnumerable<Reminder> userReminderList = reminderList.Reminders.Values.Where(
|
IEnumerable<Reminder> userReminderList = reminderList.Reminders.Values.Where(
|
||||||
(Reminder next) => message.From.GetBareJid() == next.JidObj.GetBareJid()
|
(Reminder next) => message.From.GetBareJid() == next.JidObj.GetBareJid()
|
||||||
|
@ -163,11 +162,6 @@ namespace RhinoReminds
|
||||||
listMessage.AppendLine();
|
listMessage.AppendLine();
|
||||||
listMessage.AppendLine($"({userReminderList.Count()} total)");
|
listMessage.AppendLine($"({userReminderList.Count()} total)");
|
||||||
sendChatReply(message, listMessage.ToString());
|
sendChatReply(message, listMessage.ToString());
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
sendChatReply(message, "Sorry, I can't show individual items on my list right now. Try saying 'list all' to see all of them!");
|
|
||||||
// TODO: Identify number
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue