Kleinere Verbesserungen

This commit is contained in:
Andreas Bielawski 2016-09-08 15:15:19 +02:00
parent 4e01c27673
commit 271c9c5f84
3 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -1,5 +1,7 @@
local media = {}
local mime = (loadfile "./otouto/mimetype.lua")()
media.triggers = {
"(https?://[%w-_%.%?%.:,/%+=&%[%]]+%.(gif))$",
"^(https?://[%w-_%.%?%.:,/%+=&%[%]]+%.(mp4))$",

View File

@ -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"