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
@ -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.
-- https://ph.dtf.wtf/w/wtfpl/#version-3-1 for more details.

Loading…
Cancel
Save