require libraries on bot/utils.lua

This commit is contained in:
yago 2015-03-10 20:40:08 +01:00
parent 9d52c6103c
commit 2890acc04e
2 changed files with 7 additions and 7 deletions

View File

@ -1,8 +1,3 @@
http = require("socket.http")
https = require("ssl.https")
URL = require("socket.url")
json = (loadfile "./libs/JSON.lua")()
serpent = (loadfile "./libs/serpent.lua")()
require("./bot/utils")
VERSION = '0.9.4'

View File

@ -1,5 +1,10 @@
local mimetype = (loadfile "./libs/mimetype.lua")()
local ltn12 = require "ltn12"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
URL = require "socket.url"
json = (loadfile "./libs/JSON.lua")()
serpent = (loadfile "./libs/serpent.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
function get_receiver(msg)
if msg.to.type == 'user' then