tsak / rantimator

Let's howl at the moon together

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rantimator

Let's howl at the moon!

Message @RantimatorBot on Telegram.

Example conversation

Find your howl on rants.tsak.net

Config

Copy .env.sample to .env and set the following environment variables:

TOKEN=<TELEGRAM BOT TOKEN>
ADDRESS=<LISTEN ADDRESS WITH PORT>
DEBUG=1 # Enables debug mode if DEBUG is set to a non-empty value

Build

go build

Run

./rantimator

Run as a systemd service

See rantimator.service systemd service definition.

To install (tested on Ubuntu 16.04):

  1. adduser rantimator
  2. copy rantimator binary as well as .env file to /home/rantimator
  3. place systemd service script in /lib/systemd/system/
  4. sudo systemctl enable rantimator.service
  5. sudo systemctl start rantimator
  6. sudo journalctl -f -u rantimator

The last command will show if the service was started.

About

Let's howl at the moon together


Languages

Language:Go 100.0%