This commit is contained in:
shoopea 2020-01-15 18:22:41 +08:00
parent a51300116e
commit ca5a1f3238
3 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@ package main
import (
"encoding/json"
"log"
//"log"
"time"
//"github.com/robfig/cron/v3"

2
job.go
View File

@ -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)

View File

@ -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:.*)",