From f156cdcd05e2cecad0c1f33b2b31acb7d21b9c6c Mon Sep 17 00:00:00 2001 From: Astoria Floyd <39976417+AstoriaFloyd@users.noreply.github.com> Date: Sun, 8 Aug 2021 18:59:16 -0500 Subject: [PATCH 1/2] FIX MAJOR SECURITY HOLE OH GOD --- commands/complexCommands.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/complexCommands.lua b/commands/complexCommands.lua index cca265d..7c0e387 100644 --- a/commands/complexCommands.lua +++ b/commands/complexCommands.lua @@ -19,6 +19,7 @@ local commands = { -- Define commands its a table that will contain our commands end end }; + --[[ [prefix..'figlet'] = { -- Parrots input to figlet, then echos it to the same channel you are in. exec = function (message) local prefixLength = string.len(prefix) @@ -39,6 +40,7 @@ local commands = { -- Define commands its a table that will contain our commands message:delete() 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) @@ -58,4 +60,4 @@ return complexCommands -- This project is libre, and licenced under the terms of the -- DO WHAT THE FUCK YOU WANT TO PUBLIC LICENCE, version 3.1, -- as published by dtf on July 2019. See the COPYING file or --- https://ph.dtf.wtf/w/wtfpl/#version-3-1 for more details. \ No newline at end of file +-- https://ph.dtf.wtf/w/wtfpl/#version-3-1 for more details. From 2f89e24217eb22b33b132f948584cfaabff39642 Mon Sep 17 00:00:00 2001 From: Astoria Floyd <39976417+AstoriaFloyd@users.noreply.github.com> Date: Sun, 8 Aug 2021 19:08:20 -0500 Subject: [PATCH 2/2] Update tools.lua --- API/tools.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/API/tools.lua b/API/tools.lua index acda8aa..861d1cb 100644 --- a/API/tools.lua +++ b/API/tools.lua @@ -51,7 +51,7 @@ end --Now deprecated function tools.messageDectection(message, search) local distinctMessage = string.lower(message.content) - local key = require("./docs/settings.lua") + local key = dofile("./docs/settings.lua") local keyedSearch = key .. search if string.find(distinctMessage, keyedSearch) == 1 then return true @@ -93,4 +93,4 @@ return tools -- This project is libre, and licenced under the terms of the -- DO WHAT THE FUCK YOU WANT TO PUBLIC LICENCE, version 3.1, -- as published by dtf on July 2019. See the COPYING file or --- https://ph.dtf.wtf/w/wtfpl/#version-3-1 for more details. \ No newline at end of file +-- https://ph.dtf.wtf/w/wtfpl/#version-3-1 for more details.