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.