mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 13:59:39 +08:00
18 lines
356 B
Go
18 lines
356 B
Go
package modules
|
|
|
|
import (
|
|
"fmt"
|
|
"gm/utils"
|
|
|
|
zero "github.com/wdvxdr1123/ZeroBot"
|
|
)
|
|
|
|
func GetInt(state zero.State, index int64) int64 {
|
|
fmt.Println(state["regex_matched"].([]string))
|
|
return utils.Str2Int(state["regex_matched"].([]string)[index])
|
|
}
|
|
|
|
func GetStr(state zero.State, index int64) string {
|
|
return state["regex_matched"].([]string)[index]
|
|
}
|