mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Added Bassmanjack
This commit is contained in:
@@ -318,4 +318,17 @@ public class JailCommand : ICommand
|
||||
var timespan = DateTimeOffset.UtcNow - DateTimeOffset.Parse(start.Value);
|
||||
await botInstance.SendChatMessageAsync($"Bossman has been in jail {timespan.Humanize(precision:5)}", true);
|
||||
}
|
||||
}
|
||||
|
||||
public class BassmanJack : ICommand
|
||||
{
|
||||
public List<Regex> Patterns => [new Regex("^bassmanjack")];
|
||||
public string? HelpText => "Bassman image";
|
||||
public UserRight RequiredRight => UserRight.Guest;
|
||||
public TimeSpan Timeout => TimeSpan.FromSeconds(10);
|
||||
public async Task RunCommand(ChatBot botInstance, MessageModel message, UserDbModel user, GroupCollection arguments, CancellationToken ctx)
|
||||
{
|
||||
// ReSharper disable once StringLiteralTypo
|
||||
await botInstance.SendChatMessageAsync("[img]https://i.postimg.cc/SRstzMQt/boss-soy-koi.gif[/img]", true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user