push !/
This commit is contained in:
parent
9c6215f324
commit
488eada53b
6
main.go
6
main.go
@ -431,7 +431,7 @@ func ListenGuild(c *tdlib.Client) {
|
|||||||
fmt.Println("===============================================================================================================")
|
fmt.Println("===============================================================================================================")
|
||||||
|
|
||||||
for _, line := range strings.Split(strings.TrimSuffix(txt, "\n"), "\n") {
|
for _, line := range strings.Split(strings.TrimSuffix(txt, "\n"), "\n") {
|
||||||
validID := regexp.MustCompile(`^!g_stock$`)
|
validID := regexp.MustCompile(`^/g_stock$`)
|
||||||
if validID.MatchString(line) {
|
if validID.MatchString(line) {
|
||||||
fmt.Println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! GUILD STOCK REPORT SPOTTED !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
|
fmt.Println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! GUILD STOCK REPORT SPOTTED !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
|
||||||
|
|
||||||
@ -657,11 +657,11 @@ func ListenGuild(c *tdlib.Client) {
|
|||||||
|
|
||||||
break
|
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) {
|
if validID.MatchString(line) {
|
||||||
fmt.Println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! GUILD WITHDRAWAL SPOTTED !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
|
fmt.Println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! GUILD WITHDRAWAL SPOTTED !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
|
||||||
|
|
||||||
t := regexp.MustCompile(`!g_withdraw (?P<Code>[a-z0-9]+) (?P<Quantity>[0-9]+)`)
|
t := regexp.MustCompile(`/g_withdraw (?P<Code>[a-z0-9]+) (?P<Quantity>[0-9]+)`)
|
||||||
|
|
||||||
if t.FindStringSubmatch(line) != nil {
|
if t.FindStringSubmatch(line) != nil {
|
||||||
size, _ = strconv.Atoi(t.ReplaceAllString(line, "${Quantity}"))
|
size, _ = strconv.Atoi(t.ReplaceAllString(line, "${Quantity}"))
|
||||||
|
Loading…
Reference in New Issue
Block a user