From 3b63b7b54eef9edc83c3f3b10f8a65eb0e3d8003 Mon Sep 17 00:00:00 2001 From: Akamaru Date: Mon, 6 Jul 2015 18:31:44 +0200 Subject: [PATCH] changed text for temp command --- plugins/sh.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/sh.lua b/plugins/sh.lua index 59a2e92..4ee9266 100644 --- a/plugins/sh.lua +++ b/plugins/sh.lua @@ -22,8 +22,8 @@ function run(msg, matches) if string.starts(msg.text, '/temp') then text = run_bash('vcgencmd measure_temp') - send_msg(receiver, text, ok_cb, false) - return + text = string.gsub(text, "temp=", " ") + return "Die CPU Temperatur beträgt" ..text end if string.starts(msg.text, '/volt') then @@ -61,7 +61,7 @@ end return { description = "Führt Befehle in der Konsole aus", 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, privileged = true }