few little changes
This commit is contained in:
parent
b02a7abc4d
commit
2603df596e
3
.gitignore
vendored
3
.gitignore
vendored
@ -36,4 +36,5 @@ plugins/soundcloud.lua
|
|||||||
plugins/spotify.lua
|
plugins/spotify.lua
|
||||||
plugins/vimeo.lua
|
plugins/vimeo.lua
|
||||||
plugins/vine.lua
|
plugins/vine.lua
|
||||||
plugins/youtube_playlist.lua
|
plugins/youtube_playlist.lua
|
||||||
|
plugins/yandere.lua
|
@ -233,7 +233,7 @@ function create_cred( )
|
|||||||
neutrino_apikey = "",
|
neutrino_apikey = "",
|
||||||
page2images_restkey = "",
|
page2images_restkey = "",
|
||||||
soundcloud_client_id = "",
|
soundcloud_client_id = "",
|
||||||
superfeedr_authorization = "=",
|
superfeedr_authorization = "",
|
||||||
tw_consumer_key = "",
|
tw_consumer_key = "",
|
||||||
tw_consumer_secret = "",
|
tw_consumer_secret = "",
|
||||||
tw_access_token = "",
|
tw_access_token = "",
|
||||||
|
@ -45,7 +45,7 @@ function run(msg, matches)
|
|||||||
|
|
||||||
local txt = 'Artist: ' .. post.tag_string_artist .. '\n'
|
local txt = 'Artist: ' .. post.tag_string_artist .. '\n'
|
||||||
txt = txt .. 'Character: ' .. post.tag_string_character .. '\n'
|
txt = txt .. 'Character: ' .. post.tag_string_character .. '\n'
|
||||||
txt = txt .. '[' .. math.ceil(post.file_size/1000) .. 'kb] ' .. URL .. post.file_url
|
--txt = txt .. '[' .. math.ceil(post.file_size/1000) .. 'kb] ' .. URL .. post.file_url
|
||||||
return txt
|
return txt
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ end
|
|||||||
|
|
||||||
local function run(msg, matches)
|
local function run(msg, matches)
|
||||||
local chat_id = tostring(msg.to.id)
|
local chat_id = tostring(msg.to.id)
|
||||||
if matches[1] == "!get" then
|
if matches[1] == "/get" then
|
||||||
return get_value(chat_id, nil)
|
return get_value(chat_id, nil)
|
||||||
end
|
end
|
||||||
return get_value(chat_id, matches[1])
|
return get_value(chat_id, matches[1])
|
||||||
@ -77,4 +77,3 @@ return {
|
|||||||
run = run,
|
run = run,
|
||||||
pre_process = lex
|
pre_process = lex
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
local _file_values = './data/values.lua'
|
local _file_values = './data/values.lua'
|
||||||
|
|
||||||
local function save_value(chat, text )
|
local function save_value(chat, text )
|
||||||
var_name, var_value = string.match(text, "!set (%a+) (.+)")
|
var_name, var_value = string.match(text, "/set (%a+) (.+)")
|
||||||
if (var_name == nil or var_value == nil) then
|
if (var_name == nil or var_value == nil) then
|
||||||
return "Benutzung: /set var_name value"
|
return "Benutzung: /set var_name value"
|
||||||
end
|
end
|
||||||
@ -27,4 +27,4 @@ return {
|
|||||||
usage = "/set [Variablenname] [Daten]",
|
usage = "/set [Variablenname] [Daten]",
|
||||||
patterns = {"^/set (%a+) (.+)$"},
|
patterns = {"^/set (%a+) (.+)$"},
|
||||||
run = run
|
run = run
|
||||||
}
|
}
|
@ -38,11 +38,10 @@ function run(msg, matches)
|
|||||||
title == "Object moved" or
|
title == "Object moved" or
|
||||||
string.match(title, "on Steam") or
|
string.match(title, "on Steam") or
|
||||||
string.match(title, "521: Web server is down") or
|
string.match(title, "521: Web server is down") or
|
||||||
string.match(title, "deviantArt") or
|
|
||||||
string.match(title, "twitch") or
|
|
||||||
string.match(title, "eBay</title>") or
|
string.match(title, "eBay</title>") or
|
||||||
string.match(title, "Twitch") or
|
string.match(msg.text, "twitch.tv") or
|
||||||
string.match(msg.text, "steamcommunity.com/app/") then
|
string.match(msg.text, "steamcommunity.com/app/") or
|
||||||
|
string.match(msg.text, "deviantart.com") then
|
||||||
print('Invalide, da "'..title..'"')
|
print('Invalide, da "'..title..'"')
|
||||||
else
|
else
|
||||||
return title
|
return title
|
||||||
|
Reference in New Issue
Block a user