tg_mafia

command module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MIT Imports: 6 Imported by: 0

README

tg-mafia

Telegram bot for moderating offline Mafia game.
Currently 4 sides availible:

  • Mafia side: Mafia role
  • Peaceful side: Peaceful role, Doctor, Witness, Sheriff
  • Maniac side: Maniac role
  • Role Guesser side: Role Guesser role

Godoc for package game is available here.

Requirements

  • Golang [1.20+]
  • Telegram bot token
  • PostgreSQL [14] running instance

Libraries used

  • telegram-bot-api
    Golang bindings for the Telegram Bot API
  • Mockery
    A mock code autogenerator for Go
  • pgx
    PostgreSQL Driver and Toolkit

Usage

Program tries to obtain environment variables TELEGRAM_APITOKEN, which will be used as a bot token, and POSTGRES_URI, which will be used as connection string to PostrgreSQL, at start-up.

Interaction with bot has not yet been translated from Russian. You can find commands here or with /start command.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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