Update tools.lua

pull/5/head
Astoria Floyd 3 years ago committed by GitHub
parent f156cdcd05
commit 2f89e24217
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save