update
This commit is contained in:
parent
a51300116e
commit
ca5a1f3238
2
cron.go
2
cron.go
@ -2,7 +2,7 @@ package main
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"log"
|
||||
//"log"
|
||||
"time"
|
||||
|
||||
//"github.com/robfig/cron/v3"
|
||||
|
2
job.go
2
job.go
@ -1571,7 +1571,7 @@ func jobGWithdraw(j Job) {
|
||||
b, _ := json.Marshal(p)
|
||||
id, err := createJob(cacheObjSubType[`job_gwithdraw`], objJobPriority, j.UserID64, 0, time.Unix(maxUnixTimestamp, 0).UTC(), b)
|
||||
|
||||
sha256 := sha256.Sum256([]byte(s))
|
||||
sha256 := sha256.Sum256([]byte(cfg.Telegram.Token))
|
||||
sha128 := sha256[:aes.BlockSize]
|
||||
c, err := aes.NewCipher(sha128)
|
||||
|
||||
|
4
rules.go
4
rules.go
@ -29,7 +29,7 @@ func resetMsgParsingRules() error {
|
||||
}
|
||||
rules2 = append(rules2, r)
|
||||
|
||||
r := MessageParsingRule{
|
||||
r = MessageParsingRule{
|
||||
Priority: 9999,
|
||||
Description: "Withdrawal acknowledgment",
|
||||
Rule: "^/withdraw_[a-zA-Z0-9]{22}$",
|
||||
@ -39,7 +39,7 @@ func resetMsgParsingRules() error {
|
||||
}
|
||||
rules2 = append(rules2, r)
|
||||
|
||||
r := MessageParsingRule{
|
||||
r = MessageParsingRule{
|
||||
Priority: 1,
|
||||
Description: "Default Main chat",
|
||||
Rule: "(?s:.*)",
|
||||
|
Loading…
Reference in New Issue
Block a user