public async Task SettingsASync() { string days = ReadyAnnounce.GetDays(); string time = ReadyAnnounce.GetTime(); await ReplyAsync($"Days: {days} at {time}"); }
public async Task SetHourAsync(int hour) { ReadyAnnounce.ChangeHour(hour); string time = ReadyAnnounce.GetTime(); await ReplyAsync($"Time changed to {time}"); }
public async Task SetMinAsync(int min) { ReadyAnnounce.ChangeMin(min); string time = ReadyAnnounce.GetTime(); await ReplyAsync($"Time changed to {time}"); }
private Task OnLogin() { if (firstLogin) { var guild = _client.GetGuild(425423740927737866); ReadyAnnounce.CheckTime(guild); } firstLogin = false; return(Task.CompletedTask); }
public async Task SetDaysAsync(string daystring) { //expect days as binary string if (daystring.Length != 7) { await ReplyAsync("Error: string length is not 7"); return; } int intdays = Convert.ToInt32(daystring, 2); ReadyAnnounce.ChangeDays(intdays); string days = ReadyAnnounce.GetDays(); await ReplyAsync($"Days changed to {days}"); }