mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Added winmanjack
This commit is contained in:
@@ -93,4 +93,19 @@ public class CrackedCommand : ICommand
|
||||
(FuckUpPosition)settings[BuiltIn.Keys.CrackedZalgoFuckUpPosition].ToType<int>());
|
||||
botInstance.SendChatMessage(zalgo.ToString(), true);
|
||||
}
|
||||
}
|
||||
|
||||
public class WinmanjackCommand : ICommand
|
||||
{
|
||||
public List<Regex> Patterns => [
|
||||
new Regex("^winmanjack")
|
||||
];
|
||||
public string? HelpText => "winmanjack.jpg";
|
||||
public UserRight RequiredRight => UserRight.Loser;
|
||||
public TimeSpan Timeout => TimeSpan.FromSeconds(10);
|
||||
public async Task RunCommand(ChatBot botInstance, MessageModel message, UserDbModel user, GroupCollection arguments, CancellationToken ctx)
|
||||
{
|
||||
var image = await Helpers.GetValue(BuiltIn.Keys.WinmanjackImgUrl);
|
||||
botInstance.SendChatMessage($"[img]{image.Value}[/img]", true);
|
||||
}
|
||||
}
|
||||
@@ -507,6 +507,15 @@ public static class BuiltIn
|
||||
Default = "2",
|
||||
IsSecret = false,
|
||||
CacheDuration = TimeSpan.FromHours(1)
|
||||
},
|
||||
new BuiltInSettingsModel
|
||||
{
|
||||
Key = Keys.WinmanjackImgUrl,
|
||||
Regex = ".+",
|
||||
Description = "URL for the winmanjack image",
|
||||
Default = "https://kiwifarms.st/attachments/winmanjack_bgr-png.6414050/",
|
||||
IsSecret = false,
|
||||
CacheDuration = TimeSpan.FromHours(1)
|
||||
}
|
||||
];
|
||||
|
||||
@@ -555,5 +564,6 @@ public static class BuiltIn
|
||||
public static string JuiceLoserDivision = "Juice.LoserDivision";
|
||||
public static string CrackedZalgoFuckUpMode = "Cracked.ZalgoFuckUpMode";
|
||||
public static string CrackedZalgoFuckUpPosition = "Cracked.ZalgoFuckUpPosition";
|
||||
public static string WinmanjackImgUrl = "Winmanjack.ImgUrl";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user