few little changes

This commit is contained in:
Akamaru 2015-05-10 13:09:06 +02:00
parent b02a7abc4d
commit 2603df596e
6 changed files with 10 additions and 11 deletions

3
.gitignore vendored
View File

@ -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

View File

@ -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 = "",

View File

@ -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

View File

@ -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
} }

View File

@ -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
} }

View File

@ -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