Esempio n. 1
0
    public static void SendTimedReminder(this TwitchBot twitchBot, Reminder reminder)
    {
        string message         = $"{reminder.ToUser}, reminder from {reminder.GetAuthor()} ({TimeHelper.GetUnixDifference(reminder.Time)} ago)";
        string reminderMessage = reminder.Message.Decode();

        if (!string.IsNullOrEmpty(reminderMessage))
        {
            message += $": {reminderMessage}";
        }
        twitchBot.Send(reminder.Channel, message);
    }