First commit of Mikubot

This commit is contained in:
2015-04-14 20:21:23 +02:00
parent 77d7d65412
commit ce629850e2
106 changed files with 725 additions and 1332 deletions

View File

@@ -1,6 +1,6 @@
require("./bot/utils")
VERSION = '0.11.2'
VERSION = '2.5-reloaded'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
@@ -76,7 +76,7 @@ local function is_plugin_disabled_on_chat(plugin_name, receiver)
for disabled_plugin,disabled in pairs(disabled_chats[receiver]) do
print(disabled_plugin)
if disabled_plugin == plugin_name and disabled then
local warning = 'Plugin '..disabled_plugin..' is disabled on this chat'
local warning = ''
print(warning)
send_msg(receiver, warning, ok_cb, false)
return true

View File

@@ -99,7 +99,7 @@ function download_to_file(url, file_name)
file_name = file_name or get_http_file_name(url, headers)
local file_path = "/tmp/"..file_name
local file_path = "/home/pi/Mikubot/tmp/"..file_name
print("Saved to: "..file_path)
file = io.open(file_path, "w+")