- dkjson durch lua-cjson ausgetauscht. Bitte lua-cjson installieren!
- Surrogate unterstützt jetzt auch @-Namen (und dadurch auch Kanäle)
This commit is contained in:
parent
5f010ca1ee
commit
83a637bc29
@ -29,7 +29,7 @@ Du benötigst **Lua 5.2+**, eine aktive **Redis-Instanz** und die folgenden **Lu
|
|||||||
* luasocket
|
* luasocket
|
||||||
* luasec
|
* luasec
|
||||||
* multipart-post
|
* multipart-post
|
||||||
* dkjson
|
* lua-cjson
|
||||||
* lpeg
|
* lpeg
|
||||||
* redis-lua
|
* redis-lua
|
||||||
* fakeredis
|
* fakeredis
|
||||||
|
@ -13,7 +13,7 @@ function echo:init(config)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function echo:inline_callback(inline_query, config, matches)
|
function echo:inline_callback(inline_query, config, matches)
|
||||||
local text = matches[1]
|
local text = matches[1]
|
||||||
local results = '['
|
local results = '['
|
||||||
|
|
||||||
-- enable custom markdown button
|
-- enable custom markdown button
|
||||||
|
@ -2,11 +2,11 @@ local surrogate = {}
|
|||||||
|
|
||||||
surrogate.triggers = {
|
surrogate.triggers = {
|
||||||
"^/s (%-%d+) +(.+)$",
|
"^/s (%-%d+) +(.+)$",
|
||||||
"^/s (%d+) +(.+)$"
|
"^/s (%d+) +(.+)$",
|
||||||
|
"^/s (@[A-Za-z0-9-_-.-._.]+) +(.+)"
|
||||||
}
|
}
|
||||||
|
|
||||||
function surrogate:action(msg)
|
function surrogate:action(msg)
|
||||||
-- Supergroups don't work!?
|
|
||||||
utilities.send_message(self, matches[1], matches[2], true, nil, true)
|
utilities.send_message(self, matches[1], matches[2], true, nil, true)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
@ -8,7 +8,7 @@ http = require('socket.http')
|
|||||||
https = require('ssl.https')
|
https = require('ssl.https')
|
||||||
socket = require('socket')
|
socket = require('socket')
|
||||||
URL = require('socket.url')
|
URL = require('socket.url')
|
||||||
json = require('dkjson')
|
json = require "cjson"
|
||||||
serpent = require("serpent")
|
serpent = require("serpent")
|
||||||
bindings = require('otouto.bindings')
|
bindings = require('otouto.bindings')
|
||||||
redis = (loadfile "./otouto/redis.lua")()
|
redis = (loadfile "./otouto/redis.lua")()
|
||||||
|
Reference in New Issue
Block a user