Categorygithub.com/PurpleSec/watcher
repositorypackage
1.4.2
Repository: https://github.com/purplesec/watcher.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

Twitter Watcher Telegram Bot

Golang Twitter Notification Bot for Telegram

This is a bot for Telegram written in Golang, backed by a SQL database that is used for subscribing to user Tweets.

Command Line Options

Twitter Watcher Telegram Bot
Purple Security (losynth.com/purple) 2021 - 2023

Usage:
  -h              Print this help menu.
  -f <file>       Configuration file path.
  -d              Dump the default configuration and exit.
  -clear-all      Clear the database of ALL DATA before starting up.
  -update         Update the database schema to the latest version.

Configuration Options

The default config can be dumped to Stdout using the '-d' command line flag.

{
    "db": {
        "host": "tcp(localhost:3306)",
        "user": "watcher_user",
        "password": "password",
        "database": "watcher_db"
    },
    "log": {
        "file": "watcher.log",
        "level": 2
    },
    "blocked": [],
    "allowed": [],
    "twitter": {
        "consumer_key": "",
        "consumer_secret": ""
    },
    "timeouts": {
        "web": 15000000000,
        "resolve": 21600000000000,
        "backoff": 250000000,
        "database": 60000000000,
        "telegram": 15000000000
    },
    "telegram_key": ""
}