修改吃

This commit is contained in:
purofle 2024-05-12 13:11:37 +08:00
parent adcead6448
commit 602ed91ef6

View File

@ -105,6 +105,11 @@ func CommandRemakeData(c tele.Context) error {
} }
func CommandEat(c tele.Context) error { func CommandEat(c tele.Context) error {
if !(c.Chat().Type == tele.ChatPrivate || c.Chat().ID == -1001965344356) {
fmt.Println(c.Chat().ID)
return nil
}
method := []string{"炒", "蒸", "煮"} method := []string{"炒", "蒸", "煮"}
// 获取时间段 // 获取时间段
@ -135,6 +140,11 @@ func CommandEat(c tele.Context) error {
} }
func CommandOnText(c tele.Context) error { func CommandOnText(c tele.Context) error {
if c.Chat().ID != -1001965344356 {
return nil
}
if c.Message().ReplyTo != nil { if c.Message().ReplyTo != nil {
text := quotely.QuoteReply(c.Bot(), c.Message()) text := quotely.QuoteReply(c.Bot(), c.Message())
if text != "" { if text != "" {