Echo: Ersetze / am Anfang bei Echo
This commit is contained in:
parent
5d8c86115b
commit
0d434db39c
@ -35,6 +35,12 @@ function echo:action(msg)
|
|||||||
output = '*Echo:*\n"' .. utilities.md_escape(input) .. '"'
|
output = '*Echo:*\n"' .. utilities.md_escape(input) .. '"'
|
||||||
utilities.send_message(self, msg.chat.id, output, true, nil, true)
|
utilities.send_message(self, msg.chat.id, output, true, nil, true)
|
||||||
return
|
return
|
||||||
|
elseif msg.chat.type == 'group' then
|
||||||
|
local b = 1
|
||||||
|
while b ~= 0 do
|
||||||
|
input = utilities.trim(input)
|
||||||
|
input,b = input:gsub('^/+','')
|
||||||
|
end
|
||||||
end
|
end
|
||||||
utilities.send_message(self, msg.chat.id, input, true, nil, true)
|
utilities.send_message(self, msg.chat.id, input, true, nil, true)
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user