Kollision mit mimetype behoben
This commit is contained in:
parent
32d99e0c47
commit
affaf9044c
@ -23,7 +23,7 @@ media.triggers = {
|
|||||||
function media:action(msg, config, matches)
|
function media:action(msg, config, matches)
|
||||||
local url = matches[1]
|
local url = matches[1]
|
||||||
local ext = matches[2]
|
local ext = matches[2]
|
||||||
local mime_type = mimetype.get_content_type_no_sub(ext)
|
local mime_type = mime.get_content_type_no_sub(ext)
|
||||||
local receiver = msg.chat.id
|
local receiver = msg.chat.id
|
||||||
|
|
||||||
if mime_type == 'audio' then
|
if mime_type == 'audio' then
|
||||||
|
@ -12,7 +12,7 @@ json = require("dkjson")
|
|||||||
pcall(json.use_lpeg)
|
pcall(json.use_lpeg)
|
||||||
serpent = require("serpent")
|
serpent = require("serpent")
|
||||||
redis = (loadfile "./otouto/redis.lua")()
|
redis = (loadfile "./otouto/redis.lua")()
|
||||||
mimetype = (loadfile "./otouto/mimetype.lua")()
|
mime = (loadfile "./otouto/mimetype.lua")()
|
||||||
OAuth = require "OAuth"
|
OAuth = require "OAuth"
|
||||||
helpers = require "OAuth.helpers"
|
helpers = require "OAuth.helpers"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user