项目作者: skgsergio

项目描述 :
Telegram Bot for creating Animal Crossing New Horizons Turnips markets in groups.
高级语言: Go
项目地址: git://github.com/skgsergio/mercanabo-tg-bot.git
创建时间: 2020-04-09T14:06:01Z
项目社区:https://github.com/skgsergio/mercanabo-tg-bot

开源协议:GNU General Public License v3.0

下载


Mercanabo Telegram Bot

A simple Telegram bot that allows users of a Telegram Group to track Turnip sell
prices and store how much they bought in oder to maximize profits.

Build

  1. go build

Running it

Requirements

Configuration environment variables

  • MERCANABO_TOKEN: Telegram token. See https://core.telegram.org/bots
  • MERCANABO_SUPERADMINS: Comma separated list of Telegram user ids,
    superadmins will have power over the bot in any channel as well as accesing
    private administration commands.
  • MERCANABO_DEFAULT_TZ (default: UTC): Default Time Zone for new groups, group admins can
    change the timezone for their group. See: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  • MERCANABO_LANG (default: default): Bot language, this is global and can’t be changed per
    group. See: texts
  • MERCANABO_DEBUG: If true then sets the log level to debug, changes the
    log output to a colorful mode and enables gorm debug log.
  • POSTGRES_HOST: PostgreSQL hostname.
  • POSTGRES_PORT: PostgreSQL port.
  • POSTGRES_SSLMODE: PostgreSQL sslmode. See: https://pkg.go.dev/github.com/lib/pq
  • POSTGRES_USER: PostgreSQL user.
  • POSTGRES_PASSWORD: PostgreSQL password.
  • POSTGRES_DB: PostgreSQL database name.

Docker

To simplify the deployment there is a Docker Compose file
ready to use. You can just use it and it will deploy a postgresql container, with
a volume for persistence, and a bot container, that is build from local source.

TODO

  • Nothing 🎉

License

This project is licensed under the GPL 3.0 License. See the LICENSE
file for details.