pull/5/head
Astoria Floyd 3 years ago
parent c7ba3f8053
commit d323c35bf8

@ -51,7 +51,7 @@ end
[prefix..'echo'] = { -- Echo's what you said back out, in a fix codeblock. Could be against TOS.
exec = function (message)
local prefixLength = string.len(prefix)
local echo = string.sub(message.content, 5+prefixLength)
local echo = string.sub(message.content, 6+prefixLength)
local echoed = tools.echo(echo)
local result = "```fix" .. "\n" .. echoed .. "```"
if result == "```fix\n```" then message:delete() return
@ -65,7 +65,7 @@ end
[prefix..'echoclean'] = { -- Echo's what you said back out, in a fix codeblock. Could be against TOS.
exec = function (message)
local prefixLength = string.len(prefix)
local echo = string.sub(message.content, 10+prefixLength)
local echo = string.sub(message.content, 11+prefixLength)
local echoed = tools.echo(echo)
local result = echoed
message.channel:send(result)

Loading…
Cancel
Save