changed text for temp command
This commit is contained in:
parent
e81c9b4860
commit
3b63b7b54e
@ -22,8 +22,8 @@ function run(msg, matches)
|
|||||||
|
|
||||||
if string.starts(msg.text, '/temp') then
|
if string.starts(msg.text, '/temp') then
|
||||||
text = run_bash('vcgencmd measure_temp')
|
text = run_bash('vcgencmd measure_temp')
|
||||||
send_msg(receiver, text, ok_cb, false)
|
text = string.gsub(text, "temp=", " ")
|
||||||
return
|
return "Die CPU Temperatur beträgt" ..text
|
||||||
end
|
end
|
||||||
|
|
||||||
if string.starts(msg.text, '/volt') then
|
if string.starts(msg.text, '/volt') then
|
||||||
@ -61,7 +61,7 @@ end
|
|||||||
return {
|
return {
|
||||||
description = "Führt Befehle in der Konsole aus",
|
description = "Führt Befehle in der Konsole aus",
|
||||||
usage = {"/sh kann nur Akamaru"},
|
usage = {"/sh kann nur Akamaru"},
|
||||||
patterns = {"^/uptime","^/sh (.*)$","^/temp$","^/volt$","^/takt$","^/screen$","^/update$","^/upgrade$"},
|
patterns = {"^/uptime$","^/sh (.*)$","^/temp$","^/volt$","^/takt$","^/screen$","^/update$","^/upgrade$"},
|
||||||
run = run,
|
run = run,
|
||||||
privileged = true
|
privileged = true
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user