This repository has been archived on 2021-04-24. You can view files and clone it, but cannot push or open issues or pull requests.
Mikubot/plugins/boersedown.lua

24 lines
565 B
Lua
Raw Normal View History

socket = require("socket")
function cron()
-- Use yours desired web and id
local addr = "www.boerse.to"
2015-05-11 20:04:09 +02:00
local dest = "chat#id12345678"
-- 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 {
2015-04-20 18:52:25 +02:00
description = "Checkt ob Boerse.to online ist",
2015-04-28 17:49:11 +02:00
usage = {"Hierfür gibt es kein Befehl"},
patterns = {},
run = nil,
cron = cron
}