From 8f89fab83679b5fb1cc594280e4251f0582598bc Mon Sep 17 00:00:00 2001 From: Astoria Floyd Date: Sat, 7 Aug 2021 21:49:29 -0500 Subject: [PATCH] Added Licence information. Aka do whatever you want. --- bot.lua | 18 +++++++++++------- complexCommands.lua | 6 +++++- rng.lua | 6 +++++- settings.lua | 6 +++++- simpleCommands.lua | 4 ++++ tools.lua | 6 +++++- 6 files changed, 35 insertions(+), 11 deletions(-) diff --git a/bot.lua b/bot.lua index e86a400..b50e6be 100644 --- a/bot.lua +++ b/bot.lua @@ -24,13 +24,13 @@ end) --Re-Init detector. Only command that itself cannot be fully re-initialized client:on('messageCreate', function(message) local user = message.guild:getMember(message.author.id) - if not user:hasPermission("administrator") then - message:reply("You cannot re-initialize this bot!") - else if Tools.messageDectection(message, "reinitialize") == true then - Commands = Tools.initialize() - Tools = dofile("./tools.lua") - message:reply("Re-Initialized!") + if not user:hasPermission("administrator") then + message:reply("You cannot re-initialize this bot!") + else + Commands = Tools.initialize() + Tools = dofile("./tools.lua") + message:reply("Re-Initialized!") end end end) @@ -47,4 +47,8 @@ end) --Insert Token in a .lua file with simply returns it as a string. local token = require("./token.lua") -client:run('Bot '..token) \ No newline at end of file +client:run('Bot '..token) +-- 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 diff --git a/complexCommands.lua b/complexCommands.lua index d559560..71a181e 100644 --- a/complexCommands.lua +++ b/complexCommands.lua @@ -52,4 +52,8 @@ local commands = { -- Define commands its a table that will contain our commands function complexCommands.initialize() return commands end -return complexCommands \ No newline at end of file +return complexCommands +-- 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 diff --git a/rng.lua b/rng.lua index 3dfb580..adbce1d 100644 --- a/rng.lua +++ b/rng.lua @@ -34,4 +34,8 @@ function rng.roll(arg) return message end -return rng \ No newline at end of file +return rng +-- 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 diff --git a/settings.lua b/settings.lua index 7afacf4..8c14a52 100644 --- a/settings.lua +++ b/settings.lua @@ -1,2 +1,6 @@ --Litterally just the prefix right now -return "!" \ No newline at end of file +return "!" +-- 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 diff --git a/simpleCommands.lua b/simpleCommands.lua index aa8c90b..54d2998 100644 --- a/simpleCommands.lua +++ b/simpleCommands.lua @@ -47,3 +47,7 @@ function basicCommands.initialize() return commands end return basicCommands +-- 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 diff --git a/tools.lua b/tools.lua index d2c7754..7751f34 100644 --- a/tools.lua +++ b/tools.lua @@ -89,4 +89,8 @@ function tools.figlet(string) return string end -return tools \ No newline at end of file +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