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

1
.gitignore vendored
View File

@ -37,3 +37,4 @@ plugins/spotify.lua
plugins/vimeo.lua
plugins/vine.lua
plugins/youtube_playlist.lua
plugins/yandere.lua

View File

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

View File

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

View File

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

View File

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

View File

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