bitbot

command module
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2020 License: MIT Imports: 1 Imported by: 0

README

Bitbot

A minimal IRC bot that was built for me, not you.

Installation

go get github.com/bbriggs/bitbot && go install github.com/bbriggs/bitbot

Usage
± bitbot --help
A Golang IRC bot powered by Hellabot

Usage:
  bitbot [flags]

Flags:
  -c, --channels strings   channels to join
      --config string      config file (default is ./config.yaml)
  -h, --help               help for bitbot
  -n, --nick string        nickname
      --nickserv string    nickserv password
      --operPass string    oper password
      --operUser string    oper username
      --prom               enable prometheus
      --promAddr string    Prometheus metrics address and port
  -s, --server string      target server
      --ssl                enable ssl

All flags are also supported as config file parameters.

---
server: "irc.secops.space:6697"
nickServ: "hunter2"
operUser: "your-oper-username"
operPass: "correct-horse-battery-staple"
channels:
  - "#main"
  - "#bots"
  - "#bitbot"
nick: "bitbot"
ssl: "true"
prom: "true"
promAddr: "127.0.0.0.1:8080"
admins:
  "[email protected]"
prom: "true"
promAddr: "0.0.0.0:8080"
dbuser: "bitbot"
dbpass: "bitbot"
dbhost: "127.0.0.1"
dbport: "5432"
dbsslmode: "disable"
# Plugins available to load are defined in cmd/bot.go
plugins:
  - "roll"
  - "skip"
  - "info"
  - "shrug"
  - "urlReader"
Running with scissors Docker

Assuming a config file named config.yaml in your local directory:

docker run --rm -it -v `pwd`/config.yaml:/app/config.yaml bbriggs/bitbot --config /app/config.yaml

You will need to have a postgresSQL database running, you can launch one that will work with the example config with

docker-compose up -d db

Remember that if you're running in Docker, your Prometheus bind address must be 0.0.0.0 + some port and you must publish that port using -p

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL