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] 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.