fixed a bug with +
This commit is contained in:
parent
bb3463de47
commit
6893208490
@ -10,6 +10,7 @@ local function run(msg, matches)
|
|||||||
end
|
end
|
||||||
local b = 1
|
local b = 1
|
||||||
|
|
||||||
|
local text = string.gsub(text, "%+", "plus")
|
||||||
while b ~= 0 do
|
while b ~= 0 do
|
||||||
text,b = text:gsub('^+','+')
|
text,b = text:gsub('^+','+')
|
||||||
text = text:trim()
|
text = text:trim()
|
||||||
@ -30,7 +31,7 @@ end
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
description = "Text To Speech",
|
description = "Text To Speech",
|
||||||
usage = "!tts [whatever]",
|
usage = "/tts [whatever]",
|
||||||
patterns = {
|
patterns = {
|
||||||
"^/tts (.+)$",
|
"^/tts (.+)$",
|
||||||
"^/tts(%w+) (.+)$"
|
"^/tts(%w+) (.+)$"
|
||||||
|
Reference in New Issue
Block a user