diff --git a/main.go b/main.go index 71c60d5..9025fff 100644 --- a/main.go +++ b/main.go @@ -431,7 +431,7 @@ func ListenGuild(c *tdlib.Client) { fmt.Println("===============================================================================================================") for _, line := range strings.Split(strings.TrimSuffix(txt, "\n"), "\n") { - validID := regexp.MustCompile(`^!g_stock$`) + validID := regexp.MustCompile(`^/g_stock$`) if validID.MatchString(line) { fmt.Println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! GUILD STOCK REPORT SPOTTED !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!") @@ -657,11 +657,11 @@ func ListenGuild(c *tdlib.Client) { break } - validID = regexp.MustCompile(`^!g_withdraw ([a-z0-9]+) ([0-9]+)$`) + validID = regexp.MustCompile(`^/g_withdraw ([a-z0-9]+) ([0-9]+)$`) if validID.MatchString(line) { fmt.Println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! GUILD WITHDRAWAL SPOTTED !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!") - t := regexp.MustCompile(`!g_withdraw (?P[a-z0-9]+) (?P[0-9]+)`) + t := regexp.MustCompile(`/g_withdraw (?P[a-z0-9]+) (?P[0-9]+)`) if t.FindStringSubmatch(line) != nil { size, _ = strconv.Atoi(t.ReplaceAllString(line, "${Quantity}"))