Readme aktualisiert
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user