|
@@ -19,17 +19,17 @@ in `/etc/irccat.json` or the local directory and customise it, and run!
|
19
|
19
|
Just cat a string to the TCP port -- it'll be sent to the first channel
|
20
|
20
|
defined in your channel list:
|
21
|
21
|
|
22
|
|
- echo "Hello world" | nc -q 0 irccat-host 12345
|
|
22
|
+ echo "Hello world" | nc irccat-host 12345
|
23
|
23
|
|
24
|
24
|
Or specify a channel or nickname to send to:
|
25
|
25
|
|
26
|
|
- echo "#channel Hello world" | nc -q 0 irccat-host 12345
|
27
|
|
- echo "@nick Hello world" | nc -q 0 irccat-host 12345
|
|
26
|
+ echo "#channel Hello world" | nc irccat-host 12345
|
|
27
|
+ echo "@nick Hello world" | nc irccat-host 12345
|
28
|
28
|
|
29
|
29
|
IRC formatting is supported (see a full [list of
|
30
|
30
|
codes](https://github.com/irccloud/irccat/blob/master/tcplistener/colours.go#L5)):
|
31
|
31
|
|
32
|
|
- echo "Status is%GREEN OK %NORMAL" | nc -q 0 irccat-host 12345a
|
|
32
|
+ echo "Status is%GREEN OK %NORMAL" | nc irccat-host 12345
|
33
|
33
|
|
34
|
34
|
## HTTP → IRC
|
35
|
35
|
There's a simple HTTP endpoint for sending messages:
|