This commit is contained in:
Akamaru 2015-06-08 01:52:08 +02:00
parent 1c6177b93e
commit 9fdfa6a062
4 changed files with 8 additions and 9 deletions

4
.gitignore vendored
View File

@ -1,7 +1,6 @@
res/ res/
.luarocks .luarocks
*.db *.db
plugins/alive.lua
plugins/bitly.lua plugins/bitly.lua
plugins/danbooru.lua plugins/danbooru.lua
plugins/deviantart.lua plugins/deviantart.lua
@ -40,4 +39,5 @@ plugins/yandere.lua
plugins/e621.lua plugins/e621.lua
plugins/random.lua plugins/random.lua
plugins/ponyfaces.lua plugins/ponyfaces.lua
plugins/rss_old.lua plugins/rss_old.lua
README - Kopie.md

View File

@ -7,4 +7,4 @@ before_install:
script: script:
- luac -p bot/*.lua - luac -p bot/*.lua
- luac -p plugins/*.lua - luac -p plugins/*.lua

View File

@ -1,6 +1,6 @@
package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua' package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua' ..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so' package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils") require("./bot/utils")
@ -8,13 +8,12 @@ VERSION = '2.5-reloaded'
-- This function is called when tg receive a msg -- This function is called when tg receive a msg
function on_msg_receive (msg) function on_msg_receive (msg)
if not started then if not started then
return return
end end
local receiver = get_receiver(msg) local receiver = get_receiver(msg)
-- vardump(msg) -- vardump(msg)
msg = pre_process_service_msg(msg) msg = pre_process_service_msg(msg)
if msg_valid(msg) then if msg_valid(msg) then

View File

@ -7,4 +7,4 @@ start on runlevel [2345]
stop on shutdown stop on shutdown
setuid yourusername setuid yourusername
exec /bin/sh telegrambotpath/launch.sh exec /bin/sh telegrambotpath/launch.sh