public string GetLeaveMessage(string nickname) { var leaveMessage = _leaveMessagesCollection.FindRandomOrDefault( x => x.Nickname == nickname || x.Nickname == "all", DefaultLeaveMessage); return(leaveMessage.Template); }
public string GetGreeting(string nickname) { var greeting = _greetingsCollection.FindRandomOrDefault( x => x.Nickname == nickname || x.Nickname == "all", DefaultGreetMessage); return(greeting.Template); }