#traffic Befehl hinzugefügt
This commit is contained in:
parent
2334a40638
commit
f1e1900a06
@ -39,7 +39,6 @@ local function run(msg, matches)
|
||||
if string.match(msg.text, '^#[Ss][Cc][Rr][Ee][Ee][Nn]$') then
|
||||
text = run_bash("scrot 'scrot.png' -e 'mv $f ~/Mikubot/tmp/'")
|
||||
send_photo(get_receiver(msg), "tmp/scrot.png", ok_cb, false)
|
||||
return 'Screenshot wird gesendet!'
|
||||
end
|
||||
|
||||
-- Requires fswebcam (sudo apt-get install fswebcam)
|
||||
@ -54,6 +53,12 @@ local function run(msg, matches)
|
||||
return text
|
||||
end
|
||||
|
||||
-- Requires vnstat & vnstati (sudo apt-get install vnstat vnstati)
|
||||
if string.match(msg.text, '^#[Tt][Rr][Aa][Ff][Ff][Ii][Cc]$') then
|
||||
text = run_bash("vnstati -m -vs -i enp2s0 -o tmp/vnstat.png")
|
||||
send_photo(get_receiver(msg), "tmp/vnstat.png", ok_cb, false)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
return {
|
||||
@ -63,7 +68,8 @@ return {
|
||||
"^#[Uu][Pp][Tt][Ii][Mm][Ee]$",
|
||||
"^#[Ss][Cc][Rr][Ee][Ee][Nn]$",
|
||||
"^#[Cc][Hh][Ee][Cc][Kk]$",
|
||||
"^#[Ww][Ee][Bb][Cc][Aa][Mm]$"
|
||||
"^#[Ww][Ee][Bb][Cc][Aa][Mm]$",
|
||||
"^#[Tt][Rr][Aa][Ff][Ff][Ii][Cc]$"
|
||||
},
|
||||
run = run,
|
||||
privileged = true
|
||||
|
Reference in New Issue
Block a user