From d4a7d2fd82ac10f3c7b325bf3f807e702d9ae0ba Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 13 Nov 2021 10:45:18 +0800 Subject: [PATCH] fix take regexp --- bot.go | 2 +- version.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bot.go b/bot.go index 7dfcfc2..a3a90e5 100644 --- a/bot.go +++ b/bot.go @@ -267,7 +267,7 @@ func botTake(m *tb.Message) { return } - r := regexp.MustCompile("^/give @(?P[a-zA-Z0-9]+) (?P[a-z0-9]+)") + r := regexp.MustCompile("^/take @(?P[a-zA-Z0-9]+) (?P[a-z0-9]+)") if !r.MatchString(m.Text) { bot.SendChat(m.Chat.ID, "Wrong format.") diff --git a/version.go b/version.go index 64242e9..5d6f899 100644 --- a/version.go +++ b/version.go @@ -1,6 +1,6 @@ // Code generated by version.sh (@generated) DO NOT EDIT. package main -var githash = "24bf4dc" -var buildstamp = "2021-11-13_02:40:31" -var commits = "189" -var version = "24bf4dc-b189 - 2021-11-13_02:40:31" +var githash = "aa2a229" +var buildstamp = "2021-11-13_02:45:07" +var commits = "190" +var version = "aa2a229-b190 - 2021-11-13_02:45:07"