mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
fix(entertainment): golang regexp, add golang to /cooldowns output
This commit is contained in:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user