Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions DiscordBot/Services/ReminderService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private async Task CheckReminders()
// We reply to their original message
if (message != null)
{
string botResponse = $"{message.Author.Mention} reminder: \"{reminder.Message}\"";
string botResponse = $"Reminding {message.Author.Mention}: \"{reminder.Message}\"";
// Get the people who reacted to the message
var includeUsers = await message.GetReactionUsersAsync(BotResponseEmoji, 10).FlattenAsync();
string extraUsers = string.Empty;
Expand All @@ -152,9 +152,11 @@ private async Task CheckReminders()

extraUsers += $"{includeUser.Mention} ";
}
extraUsers = extraUsers.TrimEnd();

// If there are any extra users, we add them to the bot response
if (extraUsers != string.Empty)
botResponse += $"\n\nReacted Extras: {extraUsers}";
botResponse += $"\n({extraUsers} also signed on {BotResponseEmoji})";

await message.ReplyAsync(botResponse);
continue;
Expand Down Expand Up @@ -187,4 +189,4 @@ public bool RestartService()
Initialize();
return IsRunning;
}
}
}
Loading