Kleine Änderungen und Bugfixes

- "if not is_sudo" Texte ausgetauscht
- Pattern-Fix in google_books.lua
- Dateipfad in Random Pic Plugins angepasst
- sh.lua überarbeitet
- Neues Pattern in youtube.lua
- Fix für verschiedene Dateiendungen in youtube_dl.lua
This commit is contained in:
2016-06-23 13:55:39 +02:00
parent 5fd0a7d9b1
commit 5ce1042f6a
10 changed files with 40 additions and 63 deletions

View File

@ -2,7 +2,7 @@ package.path = './.luarocks/share/lua/5.2/?.lua;./.luarocks/share/lua/5.2/?/init
require("luarocks.loader")
require("./bot/utils")
VERSION = '20151205'
VERSION = '20160623'
-- This function is called when tg receive a msg
function on_msg_receive (msg)

View File

@ -413,7 +413,7 @@ end
-- Returns true if user was warned and false if not warned (is allowed)
function warns_user_not_allowed(plugin, msg)
if not user_allowed(plugin, msg) then
local text = 'Du darfst diesen Befehl nicht nutzen!'
local text = 'Das darf nur mein Meister!'
local receiver = get_receiver(msg)
send_msg(receiver, text, ok_cb, false)
return true