some fixes
This commit is contained in:
@@ -210,7 +210,7 @@ func generate(ctx *laniakea.MsgContext, db *laniakea.DatabaseContext) {
|
|||||||
counter := red.RPGetCounter(db, ctx.FromID, waifuId) + 1
|
counter := red.RPGetCounter(db, ctx.FromID, waifuId) + 1
|
||||||
if counter == 5 {
|
if counter == 5 {
|
||||||
m := ctx.Answer("Запущено сжатие чата.")
|
m := ctx.Answer("Запущено сжатие чата.")
|
||||||
res, err = api.CompressChat(messages)
|
res, err = api.CompressChat(messages[1:])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.Error(err)
|
ctx.Error(err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user