Compare commits

..

No commits in common. "2db65f578859cdb3000dc06da16c88f9bab69772" and "c41e4f6f264a96a817ce3c5d5c389bca72047d2c" have entirely different histories.

2 changed files with 7 additions and 8 deletions

View File

@ -25,7 +25,7 @@ exec = function(v,command,tried)
log("ERROR","Unable to retrieve event channel: "..tostring(v.channel))
log("ERROR","Failed event: "..command.."\nChannel Object: "..tostring(channel))
if not tried then
log("CRON","Retrying...")
log("INFO","Retrying...")
timer.setTimeout(2000,function()
sync_emitter:emit("execContext",function()
exec(v,command,true)
@ -42,7 +42,7 @@ exec = function(v,command,tried)
log("ERROR","Unable to retrieve event message: "..tostring(v.id))
log("ERROR","Failed event: "..command.."\nMessage object: "..tostring(msg).."\nChannel: "..tostring(channel.id))
if not tried then
log("CRON","Retrying...")
log("INFO","Retrying...")
timer.setTimeout(2000,function()
sync_emitter:emit("execContext",function()
exec(v,command,true)
@ -60,7 +60,7 @@ exec = function(v,command,tried)
log("ERROR","Unable to retrieve event creator: "..tostring(v.user))
log("ERROR","Failed event: "..command)
if not tried then
log("CRON","Retrying...")
log("INFO","Retrying...")
timer.setTimeout(2000,function()
sync_emitter:emit("execContext",function()
exec(v,command,true)
@ -225,7 +225,6 @@ register_event = function(k,v,timer,evname)
print(v.comm)
return false,k
end
log("CRON","Loaded event "..k)
return true,k
end
@ -233,7 +232,7 @@ end
for k,v in pairs(config.events.timer) do
local ev,hash = register_event(k,v,true)
if (not ev) then
log("CRON","Retrying event "..k.." in 2 seconds")
log("INFO","Retrying event "..k.." in 2 seconds")
timer.setTimeout(2000,function()
sync_emitter:emit("execContext",function()
register_event(k,v)
@ -248,7 +247,7 @@ for _,evtype in pairs(config.events.event) do
for k,v in pairs(evtype) do
local ev,hash = register_event(k,v,true)
if (not ev) then
log("CRON","Retrying event "..k.." in 2 seconds")
log("INFO","Retrying event "..k.." in 2 seconds")
timer.setTimeout(2000,function()
sync_emitter:emit("execContext",function()
register_event(k,v)
@ -370,7 +369,7 @@ timer:on("min",function()
for k,v in pairs(events.timer) do
local status,command = v.comm(os.date("*t"))
if status then
exec(v,command)
sync_emitter:emit("executeCommand",v,command)
if v.type == "onetime" then
events.timer[k] = nil
config.events.timer[k] = nil

View File

@ -16,7 +16,7 @@ return {
}
}},
["pfp"] = "Show the profile picture of a user, or if none is specified, of yourself",
["markov"] = { embed = {
["markpov"] = { embed = {
title = "Generate some text using markov chains",
description = "Generates text using the markov chain rule applied to a predefined set of words",
fields = {