few little changes
This commit is contained in:
parent
b02a7abc4d
commit
2603df596e
1
.gitignore
vendored
1
.gitignore
vendored
@ -37,3 +37,4 @@ plugins/spotify.lua
|
||||
plugins/vimeo.lua
|
||||
plugins/vine.lua
|
||||
plugins/youtube_playlist.lua
|
||||
plugins/yandere.lua
|
@ -233,7 +233,7 @@ function create_cred( )
|
||||
neutrino_apikey = "",
|
||||
page2images_restkey = "",
|
||||
soundcloud_client_id = "",
|
||||
superfeedr_authorization = "=",
|
||||
superfeedr_authorization = "",
|
||||
tw_consumer_key = "",
|
||||
tw_consumer_secret = "",
|
||||
tw_access_token = "",
|
||||
|
@ -45,7 +45,7 @@ function run(msg, matches)
|
||||
|
||||
local txt = 'Artist: ' .. post.tag_string_artist .. '\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
|
||||
end
|
||||
|
||||
|
@ -40,7 +40,7 @@ end
|
||||
|
||||
local function run(msg, matches)
|
||||
local chat_id = tostring(msg.to.id)
|
||||
if matches[1] == "!get" then
|
||||
if matches[1] == "/get" then
|
||||
return get_value(chat_id, nil)
|
||||
end
|
||||
return get_value(chat_id, matches[1])
|
||||
@ -77,4 +77,3 @@ return {
|
||||
run = run,
|
||||
pre_process = lex
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
local _file_values = './data/values.lua'
|
||||
|
||||
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
|
||||
return "Benutzung: /set var_name value"
|
||||
end
|
||||
|
@ -38,11 +38,10 @@ function run(msg, matches)
|
||||
title == "Object moved" or
|
||||
string.match(title, "on Steam") 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, "Twitch") or
|
||||
string.match(msg.text, "steamcommunity.com/app/") then
|
||||
string.match(msg.text, "twitch.tv") or
|
||||
string.match(msg.text, "steamcommunity.com/app/") or
|
||||
string.match(msg.text, "deviantart.com") then
|
||||
print('Invalide, da "'..title..'"')
|
||||
else
|
||||
return title
|
||||
|
Reference in New Issue
Block a user