fix(entertainment): golang regexp, add golang to /cooldowns output

This commit is contained in:
Andriy
2024-10-06 22:34:14 +03:00
parent b6fae7d637
commit 5b97911e18
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -13,12 +13,12 @@ public class Golang : AbstractAnimationReply
public Golang(CoreContext db, ILogger<Golang> logger, ThreadSafeRandom rng) : base(db, logger, rng) { }
protected override Regex AnimationMatch =>
new("golang|go|го|голанг|голенг|гошка|(\\*\\.go)",
new(@"((?<![\w])(го|go)(?![\\w]))|golang|голанг|голенг|гошка|(\\*\\.go)",
RegexOptions.CultureInvariant | RegexOptions.IgnoreCase);
protected override string GetAnimationName() => "golang";
[InChat(InChat.Public)]
[Command("setgolang")]
[Command("setgolang", CommandParseMode.Both)]
public async Task HandleSetGolang() => await HandleSetAnimation();
[InChat(InChat.Public)]