https://github.com/matheusfillipe/p2irc
POST to IRC Fowarder. Send messages to irc with a short curl command
https://github.com/matheusfillipe/p2irc
cgi fastcgi golang irc nginx redis
Last synced: about 1 month ago
JSON representation
POST to IRC Fowarder. Send messages to irc with a short curl command
- Host: GitHub
- URL: https://github.com/matheusfillipe/p2irc
- Owner: matheusfillipe
- Created: 2022-06-29T07:20:57.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-29T05:03:43.000Z (about 3 years ago)
- Last Synced: 2025-01-20T21:37:45.426Z (about 1 year ago)
- Topics: cgi, fastcgi, golang, irc, nginx, redis
- Language: Go
- Homepage: https://p2ir.cf
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [p2ir.cf](https://p2ir.cf)
> POST TO IRC FOWARDER
Paste or send directly to irc server.
Check main.go constans for configuration.
## From command line
You can choose the server and the room or a DM (using `-` as a prefix). The server port defaults to 6667. Pay attention that to be able to send multiple lines you need to use `--data-binary` argument on linux curl.
```sh
command | curl -d @- p2ir.cf/irc.server/room
cat file | curl --data-binary @- p2ir.cf/irc.server/room
echo "hey greg" | curl -d @- p2ir.cf/irc.server.com/-greg
printf "hey greg\nhow are you\nbye" | curl --data-binary @- p2ir.cf/irc.server.com/room
printf "hey greg\nhow are you\nbye" | curl -H "NICK: samuel" --data-binary @- p2ir.cf/irc.server.com/room
```
## Github webhooks
Create a webhook and use `application/json` for your content-type header. Edit `main.go` `WEBHOOK_TEMPLATES` to have more notifications.