mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Converted send message method to async (also created a synchronous method that shadows the async method). Added a method to send multiple messages at once and message truncation with a choice of strategies
This commit is contained in:
@@ -14,6 +14,6 @@ public class TimeCommand : ICommand
|
||||
{
|
||||
var bmt = new DateTimeOffset(TimeZoneInfo.ConvertTimeFromUtc(DateTime.UtcNow,
|
||||
TimeZoneInfo.FindSystemTimeZoneById("Eastern Standard Time")), TimeZoneInfo.FindSystemTimeZoneById("Eastern Standard Time").BaseUtcOffset);
|
||||
botInstance.SendChatMessage($"It's currently {bmt:h:mm:ss tt} BMT");
|
||||
await botInstance.SendChatMessageAsync($"It's currently {bmt:h:mm:ss tt} BMT");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user