Skip to content

Latest commit

 

History

History
56 lines (49 loc) · 2.01 KB

File metadata and controls

56 lines (49 loc) · 2.01 KB

circ

A simple irc cli tool that can be used in scripts to send messages/notifications to irc servers.

here are some examples:

circ -sasl-pass "mysaslpassword" -sasl-user mysaslusername -nick mynick -address "irc.awesome.com" -port 6697 -message "hello" -target "user"
circ -sasl-pass "mysaslpassword" -sasl-user mysaslusername -nick mynick -address "irc.awesome.com" -port 6697 -message "hello" -target "#channel"
circ -sasl-pass "mysaslpassword" -sasl-user mysaslusername -nick mynick -address "irc.awesome.com" -port 6697 -message "hello" -target "#channel" -interactive
rlwrap circ -key nick.key -cert nick.cer -nick mynick -address "irc.awesome.com" -port 6697 -message "hello" -target "user" -interactive
docker build -t circ . && docker run -it circ -sasl-pass "mysaslpassword" -sasl-user mysaslusername -nick mynick -address "irc.awesome.com" -port 6697 -message "hello" -target "#channel" -interactive

If you pass the -interactive flag, your connection will not get cut after the message is sent and you keep communicating using the stdin.

$ circ -help
Usage of ./circ:
  -address string
        IRC server address
  -cert string
        Path to TLS certificate file (optional)
  -channel string
        IRC channel to join
  -chanpass string
        password for channel if any
  -interactive
        Run in interactive mode
  -key string
        Path to TLS key file (optional)
  -message string
        Message to send to the channel (default "Hello, IRC!")
  -nick string
        IRC nickname (default "botnick")
  -port int
        IRC server port (default 6697)
  -proxy string
        Proxy URL (e.g., socks5://user:pass@host:port)
  -sasl-pass string
        IRC SASL password
  -sasl-user string
        IRC SASL username
  -send-raw
        Send raw command to the server
  -skip-tls-verify
        Skip TLS certificate verification
  -target string
        Target for the message (channel or user)
  -tls
        Use TLS for IRC connection (default true)

Thanks