Discover Packages
github.com/jejutic/tg_mafia
command
module
Version:
v0.2.1
Opens a new window with list of versions in this module.
Published: Aug 23, 2023
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
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.
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
pkg
Click to show internal directories.
Click to hide internal directories.