-
Notifications
You must be signed in to change notification settings - Fork 6
/
home.html
34 lines (28 loc) · 1.04 KB
/
home.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<html><head>
<title>Home of Parrot HTTP-IRC Gateway bot</title>
</head>
<body>
<h1>Parrot HTTP-IRC Gateway</h1>
<p>I'm not a very smart IRC bot.</p>
<p>My implementation is available on <a href="http://github.com/yannk/parrot-bot">GitHub</a></p>
<p>I'm a HTTP-IRC gateway, I was originally created so that systems could easily talk to DevOps</p>
<p>It's easy to hook it up with "web-hooks"</p>
{{if .Channels}}
<p>
You can currently find me as {{.Nick}} on the current channels of {{.IrcAddress}}:
<ul>
{{range .Channels}}
<li>{{.}}</li>
{{end}}
</ul>
{{else}}
<p>I'm not currently on any channel</p>
{{end}}
<p>Here is how to make me send a message to a channel:
<pre>
curl -XPOST {{.Url}}/post/ops -d "msg=INFO: deployment of frobnicator completed"
-or-
# entire payload is the message, just make sure Content-Type is not multipart or urlencoded
curl -XPOST {{.Url}}/post/frobnicator-dev -H 'Content-Type:' -d "3 code reviews pending for more than 24 hours"
</body>
</html>