Added winmanjack

This commit is contained in:
barelyprofessional
2024-09-14 17:06:14 +08:00
parent f588e79309
commit e2cd755a10
2 changed files with 25 additions and 0 deletions

View File

@@ -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);
}
}

View File

@@ -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";
}
}