@ -2,7 +2,7 @@ local tools = dofile("./API/tools.lua")
local rng = dofile ( " ./API/rng.lua " )
local complexCommands = { }
local prefix = dofile ( " ./docs/ settings .lua" )
local prefix = dofile ( " ./docs/ key .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.
@ -10,6 +10,7 @@ local commands = { -- Define commands its a table that will contain our commands
message.channel : send ( tools.printFile ( " docs/help " ) )
end
} ;
[ prefix .. ' roll ' ] = { -- Rolls a d20, check RNG for more info.
exec = function ( message , arg )
if not arg [ 2 ] then
@ -19,6 +20,7 @@ local commands = { -- Define commands its a table that will contain our commands
end
end
} ;
[ prefix .. ' figlet ' ] = { -- Parrots input to figlet, then echos it to the same channel you are in.
exec = function ( message )
local prefixLength = string.len ( prefix )
@ -29,6 +31,7 @@ local commands = { -- Define commands its a table that will contain our commands
message : delete ( )
end
} ;
[ prefix .. ' cowsay ' ] = { -- Parrots input to cowsay, then echos it to the same channel you are in.
exec = function ( message )
local prefixLength = string.len ( prefix )
@ -39,6 +42,7 @@ local commands = { -- Define commands its a table that will contain our commands
message : delete ( )
end
} ;
[ prefix .. ' echo ' ] = { -- Echo's what you said back out, in a fix codeblock. Could be against TOS.
exec = function ( message )
local prefixLength = string.len ( prefix )
@ -49,6 +53,7 @@ local commands = { -- Define commands its a table that will contain our commands
message : delete ( )
end
} ;
}
function complexCommands . initialize ( )