#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
|
if string.match(msg.text, '^#[Ss][Cc][Rr][Ee][Ee][Nn]$') then
|
||||||
text = run_bash("scrot 'scrot.png' -e 'mv $f ~/Mikubot/tmp/'")
|
text = run_bash("scrot 'scrot.png' -e 'mv $f ~/Mikubot/tmp/'")
|
||||||
send_photo(get_receiver(msg), "tmp/scrot.png", ok_cb, false)
|
send_photo(get_receiver(msg), "tmp/scrot.png", ok_cb, false)
|
||||||
return 'Screenshot wird gesendet!'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Requires fswebcam (sudo apt-get install fswebcam)
|
-- Requires fswebcam (sudo apt-get install fswebcam)
|
||||||
@ -54,6 +53,12 @@ local function run(msg, matches)
|
|||||||
return text
|
return text
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@ -63,7 +68,8 @@ return {
|
|||||||
"^#[Uu][Pp][Tt][Ii][Mm][Ee]$",
|
"^#[Uu][Pp][Tt][Ii][Mm][Ee]$",
|
||||||
"^#[Ss][Cc][Rr][Ee][Ee][Nn]$",
|
"^#[Ss][Cc][Rr][Ee][Ee][Nn]$",
|
||||||
"^#[Cc][Hh][Ee][Cc][Kk]$",
|
"^#[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,
|
run = run,
|
||||||
privileged = true
|
privileged = true
|
||||||
|
Reference in New Issue
Block a user