ALSO BIG SECURITY HOLE
parent
fe16508fe1
commit
e848c66804
@ -0,0 +1,29 @@
|
||||
local tools = dofile("./API/tools.lua")
|
||||
local rng = dofile("./API/rng.lua")
|
||||
local experimentalCommands = {}
|
||||
local prefix = dofile("./docs/key.lua")
|
||||
|
||||
local commands = { -- Define commands its a table that will contain our commands
|
||||
[prefix..'experiment'] = {
|
||||
exec = function (message)
|
||||
message.channel:send("Experimental mode works!")
|
||||
end
|
||||
};
|
||||
|
||||
[prefix..'test'] = { -- Test Command.
|
||||
exec = function (message)
|
||||
message.channel:send("I can add new commands on the fly, probably just going to be for testing purposes. Probably a security hole. Hence why this is the _experimental_ branch")
|
||||
message:delete()
|
||||
end
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
function experimentalCommands.initialize()
|
||||
return commands
|
||||
end
|
||||
return experimentalCommands
|
||||
-- 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.
|
@ -0,0 +1,33 @@
|
||||
```fix
|
||||
Basic functions
|
||||
---------------
|
||||
-figlet
|
||||
Converts text to ASCII art
|
||||
-cowsay
|
||||
Converts text to the speech of a cow
|
||||
-ping
|
||||
Pong!
|
||||
-roll [Argument]
|
||||
Rolls a dice, by default d20!
|
||||
-time
|
||||
Displays the time in military time, as if you were in chicago
|
||||
-helpme
|
||||
^-^
|
||||
|
||||
Basic Information
|
||||
-----------------
|
||||
All functions start with '!' though this may change in the future
|
||||
Under construction! More or less from scratch(Only just got basic I/O working!)
|
||||
May have secret functions!
|
||||
Mess with the code
|
||||
------------------
|
||||
The source code is freely availible at
|
||||
https://github.com/AstoriaFloyd/thembot
|
||||
Feel free to modify, redistribute, whatever.
|
||||
If you want to monitise it, sure go ahead.
|
||||
This code follows the WTFPL, in all 0 of its conditions.
|
||||
|
||||
Extra Information
|
||||
-----------------
|
||||
This bot is currently in text mode.
|
||||
```
|
Loading…
Reference in New Issue