Kleinere Verbesserungen
This commit is contained in:
parent
4e01c27673
commit
271c9c5f84
@ -229,7 +229,6 @@ function bot:run(config)
|
||||
-- Run cron jobs every minute.
|
||||
if self.last_cron ~= os.date('%M') then
|
||||
self.last_cron = os.date('%M')
|
||||
utilities.save_data(self.info.username..'.db', self.database) -- Save the database.
|
||||
for n=1, #self.plugins do
|
||||
local v = self.plugins[n]
|
||||
if v.cron then -- Call each plugin's cron function, if it has one.
|
||||
|
@ -1,5 +1,7 @@
|
||||
local media = {}
|
||||
|
||||
local mime = (loadfile "./otouto/mimetype.lua")()
|
||||
|
||||
media.triggers = {
|
||||
"(https?://[%w-_%.%?%.:,/%+=&%[%]]+%.(gif))$",
|
||||
"^(https?://[%w-_%.%?%.:,/%+=&%[%]]+%.(mp4))$",
|
||||
|
@ -30,7 +30,6 @@ json = require("dkjson")
|
||||
pcall(json.use_lpeg)
|
||||
serpent = require("serpent")
|
||||
redis = (loadfile "./otouto/redis.lua")()
|
||||
mime = (loadfile "./otouto/mimetype.lua")()
|
||||
OAuth = require "OAuth"
|
||||
helpers = require "OAuth.helpers"
|
||||
|
||||
|
Reference in New Issue
Block a user