few changes

new insider for insider.lua
update media_download.lua and old.lua
This commit is contained in:
2015-05-21 17:06:45 +02:00
parent ccbb1bdde8
commit 2c489f64f1
3 changed files with 11 additions and 14 deletions

View File

@ -1,9 +1,9 @@
local function callback(extra, success, result)
if success then
print('File downloaded to:', result)
print('Datei gespeichert in:', result)
else
print('Error downloading: '..extra)
print('Fehler beim downloaden von "'..extra..'"')
end
end
@ -32,14 +32,9 @@ local function pre_process(msg)
end
return {
description = "Wenn eine Datei gesendet wird, läd Mikubot sie runter.",
usage = {"Irgendeine Datei"},
description = 'Wenn eine Datei gesendet wird, läd Mikubot sie runter.',
usage = {'Irgendeine Datei'},
run = run,
patterns = {
'%[(document)%]',
'%[(photo)%]',
'%[(video)%]',
'%[(audio)%]'
},
patterns = {'%[(document)%]','%[(photo)%]','%[(video)%]','%[(audio)%]'},
pre_process = pre_process
}