Added Echo

pull/1/head
Astoria Floyd 3 years ago
parent 290f0ce6c9
commit 93f8a357a3

1
.gitignore vendored

@ -1 +1,2 @@
discordia.log
gateway.json

@ -11,8 +11,14 @@ function basicCommands.figlet(string)
end
function basicCommands.cowsay(string)
local figleted = io.popen("cowsay ".. string)
local result = figleted:read("*all")
local cowsaid = io.popen("cowsay ".. string)
local result = cowsaid:read("*all")
return result
end
function basicCommands.echo(string)
local echoed = io.popen("echo ".. string)
local result = echoed:read("*all")
return result
end

@ -12,6 +12,7 @@ end)
client:on('messageCreate', function(message)
if tools.messageDectection(message, "lenny") == true then
message.channel:send("( ͡° ͜ʖ ͡°)")
message:delete()
end
end)
@ -34,6 +35,15 @@ client:on('messageCreate', function(message)
end
end)
client:on('userBan', function()
local banChannel, err = client:getChannel("872283716486066200")
if not banChannel then
p("Attempt to fetch the channel object: ", err)
return
end
banChannel:send("User was banned ( ͡° ͜ʖ ͡°)")
end)
client:on('messageCreate', function(message)
if tools.messageDectection(message, "fire") == true then
message.channel:send('https://tenor.com/view/elmo-fire-burn-flame-gif-5042503')
@ -83,6 +93,16 @@ client:on('messageCreate', function(message)
end
end)
client:on('messageCreate', function(message)
if tools.messageDectection(message, "echo ") == true then
local echo = string.sub(message.content, 7)
local echoed = basicCommands.echo(echo)
local result = "```fix" .. "\n" .. echoed .. "```"
message.channel:send(result)
message:delete()
end
end)
client:on('messageCreate', function(message)
if tools.messageDectection(message, "welsh") == true then
image = "https://cdn.discordapp.com/attachments/748713417489252503/770289379586867231/image0.gif"

@ -1 +1 @@
{"873255296024322059":{"owner":{"id":"872299874857676820","discriminator":"0000","flags":1024,"username":"team872299874857676820","avatar":null,"public_flags":1024},"timestamp":1628296680,"shards":1},"url":"wss://gateway.discord.gg"}
{"873255296024322059":{"owner":{"id":"872299874857676820","public_flags":1024,"username":"team872299874857676820","avatar":null,"flags":1024,"discriminator":"0000"},"shards":1,"timestamp":1628301547},"url":"wss://gateway.discord.gg"}
Loading…
Cancel
Save