nibberbot

command module
v0.0.0-...-8a846b0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2017 License: MIT Imports: 8 Imported by: 0

README

nibberbot - a Telegram bot to write like a ni🅱️🅱️a

Usage

nibberbot is go get-able:

$ go get -u github.com/gsora/nibberbot/...
$ nibberbot
Usage of nibberbot:
  -apikey string
    	required, Telegram bot API key
  -cert string
    	required, TLS certificate path
  -debug
    	debug Telegram bot interactions
  -domain string
    	required, domain associated to the TLS cert+key and the server where this bot will be running
  -key string
    	required, TLS key path
  -numspaces int
    	number of spaces between each word (default 1)
  -port string
    	port to run on, must be 443, 80, 88, 8443 (default "88")

nibberbot works with both inline request and direct messages.

Letsencrypt users must provide fullchain.pem as cert.

Hacking

To add more emojis, one should add the emoji UTF-8 hex representation to the Emojis map contained in the nibber/unleash.go file. You can get the hex here.

For example, if one want to add the '🅱️' emoji:


var Emojis = map[string]string {
	...
	"b": "\xF0\x9F\x85\xB1",
	...
}

The OrderedSubstitution type will handle uppercase and the ordering.

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