New command added to youtube_search plugin
This commit is contained in:
parent
cc6b4d76f4
commit
22cff42b7b
24
plugins/boersedown.lua
Normal file
24
plugins/boersedown.lua
Normal file
@ -0,0 +1,24 @@
|
||||
socket = require("socket")
|
||||
|
||||
function cron()
|
||||
-- Use yours desired web and id
|
||||
local addr = "www.boerse.to"
|
||||
local dest = "chat#id11215880"
|
||||
-- Checks a TCP connexion
|
||||
local connexion = socket.connect(addr, 80)
|
||||
if not connexion then
|
||||
local text = "boerse.to ist schon wieder Offline..."
|
||||
print (text)
|
||||
send_msg(dest, text, ok_cb, false)
|
||||
else
|
||||
connexion:close()
|
||||
end
|
||||
end
|
||||
|
||||
return {
|
||||
description = "",
|
||||
usage = "",
|
||||
patterns = {},
|
||||
run = nil,
|
||||
cron = cron
|
||||
}
|
@ -46,7 +46,8 @@ return {
|
||||
description = "Sucht ein Video auf YouTube und sendet es",
|
||||
usage = "/youtube [Begriff]",
|
||||
patterns = {
|
||||
"^/youtube (.*)"
|
||||
"^/youtube (.*)",
|
||||
"^/yt (.*)"
|
||||
},
|
||||
run = run
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
|
||||
function run_sh(msg)
|
||||
name = get_name(msg)
|
||||
text = ''
|
||||
|
Reference in New Issue
Block a user