From 392b2e9e19c6d9899c934d6dabd35df9658c6ac8 Mon Sep 17 00:00:00 2001 From: Astoria Floyd Date: Sat, 7 Aug 2021 12:53:29 -0500 Subject: [PATCH] Made prefix configurable --- complexCommands.lua | 2 +- settings.lua | 2 ++ simpleCommands.lua | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 settings.lua diff --git a/complexCommands.lua b/complexCommands.lua index 7c1f985..f946d24 100644 --- a/complexCommands.lua +++ b/complexCommands.lua @@ -2,7 +2,7 @@ local tools = require("./tools.lua") local rng = require("./rng.lua") local complexCommands = {} -local prefix = 'test!' +local prefix = require("./settings.lua") local commands = { -- Define commands its a table that will contain our commands [prefix..'helpme'] = { -- Dumps docs/help to chat, took me forever to figure out. diff --git a/settings.lua b/settings.lua new file mode 100644 index 0000000..7afacf4 --- /dev/null +++ b/settings.lua @@ -0,0 +1,2 @@ +--Litterally just the prefix right now +return "!" \ No newline at end of file diff --git a/simpleCommands.lua b/simpleCommands.lua index a2b033b..45988f5 100644 --- a/simpleCommands.lua +++ b/simpleCommands.lua @@ -1,5 +1,5 @@ local basicCommands = {} -local prefix = "test!" +local prefix = require("./settings.lua") local commands = { -- Define commands its a table that will contain our commands [prefix..'lenny'] = { -- Creates a lenny face exec = function (message)