Readme aktualisiert

This commit is contained in:
2016-09-07 20:13:27 +02:00
parent 0726580eed
commit 0bf357d006
2 changed files with 10 additions and 1 deletions

View File

@@ -78,7 +78,8 @@ function shell:action(msg, config, matches)
-- Requires vnstat & vnstati (sudo apt-get install vnstat vnstati)
if msg.text:match('^/[Tt][Rr][Aa][Ff][Ff][Ii][Cc]$') then
run_command("vnstati -m -vs -i enp2s0 -o /tmp/vnstat.png")
local network = 'enp2s0' -- You can see your network with "ifconfig" in an terminal
run_command("vnstati -m -vs -i "..network.." -o /tmp/vnstat.png")
utilities.send_photo(msg.chat.id, '/tmp/vnstat.png', nil, msg.message_id)
return
end