rizaumami / tdcliBot

A multipurpose telegram-cli based bot
GNU General Public License v3.0
18 stars 14 forks source link

i got an error when trying to gban #6

Closed kensukekita closed 7 years ago

kensukekita commented 7 years ago

msg matches: ^/!# (%d+)$ Preprocess channels Preprocess whitelist Preprocess groupmanager *** 1490992752.000000 lua: bot/plugins/banhammer.lua:58: attempt to concatenate local 'user_id' (a nil value)

with ban i get

msg matches: ^/!# (.*)$ msg matches: ^/!# (%d+)$ Preprocess channels Preprocess whitelist Preprocess groupmanager *** 1490993155.000000 lua: .luarocks/share/lua/5.2/redis.lua:380: redis error: ERR wrong number of arguments for 'hexists' command

*** 1490993155.000000 lua: .luarocks/share/lua/5.2/redis.lua:380: redis error: ERR wrong number of arguments for 'hexists' command

and on another server with gban

Preprocess channels Preprocess whitelist Preprocess groupmanager msg matches: ^/!# (%d+)$ *** 1490994207.000000 lua: .luarocks/share/lua/5.2/redis.lua:380: redis error: ERR wrong number of arguments for 'hexists' command

kensukekita commented 7 years ago

i think my redis is too old updating...

still the same errors

rizaumami commented 7 years ago

@kensukekita
Thank you, this is a bug. I've fixed it in this commit.

kensukekita commented 7 years ago

bro i started my bot and i got this after modifying config.lua to add another sudoer

[-3][t 0][1491072589.927760124][FileManager.cpp:1436][!FileLoadManager] Can't register local file after download: [Error : 0 : File was modified] [-3][t 0][1491072590.228463650][FileManager.cpp:1436][!FileLoadManager] Can't register local file after download: [Error : 0 : File was modified] [-3][t 0][1491072590.236560822][FileManager.cpp:1436][!FileLoadManager] Can't register local file after download: [Error : 0 : File was modified] [-3][t 0][1491072590.244729042][FileManager.cpp:1436][!FileLoadManager] Can't register local file after download: [Error : 0 : File was modified] [-3][t 0][1491072590.252766132][FileManager.cpp:1436][!FileLoadManager] Can't register local file after download: [Error : 0 : File was modified] [-3][t 0][1491072590.260740519][FileManager.cpp:1436][!FileLoadManager] Can't register local file after download: [Error : 0 : File was modified] [-3][t 0][1491072590.269023418][FileManager.cpp:1436][!FileLoadManager] Can't register local file after download: [Error : 0 : File was modified] [-3][t 0][1491072590.276040316][FileManager.cpp:1436][!FileLoadManager] Can't register local file after download: [Error : 0 : File was modified] [-3][t 0][1491072590.285478830][FileManager.cpp:1436][!FileLoadManager] Can't register local file after download: [Error : 0 : File was modified] [-3][t 0][1491072590.292623281][FileManager.cpp:1436][!FileLoadManager] Can't register local file after download: [Error : 0 : File was modified] [-3][t 0][1491072590.301320553][FileManager.cpp:1436][!FileLoadManager] Can't register local file after download: [Error : 0 : File was modified]

rizaumami commented 7 years ago

Read the wiki. You mostly no need to manually edit the config file.

I'm closing this thread as initial issue was resolved.