Giter Club home page Giter Club logo

mafia-cards-giver's Introduction

mafia cards giver

simple telegram bot with rooms and passwords that gives you roles for playing "mafia" game

prerequisites

  • CMake 3.15 or something
  • CLang 9.0.0 or G++ 8.0 this stuff:
sudo apt install g++ make binutils cmake libssl-dev libboost-system-dev zlib1g-dev libcurl4-openssl-dev

building

  git submodule init
  git submodule update --recursive
  mkdir build
  cd build
  cmake ..
  make -j4

running

./server_exec [api_key] #regular run
./server_exec [api_key] > log 2>&1 & #daemonize and save logs
demonize -o log -e log_err %(pwd)/server_run [api_key] #or like this

commands

/start - start bot
/create - make room
/create 1 - make room with password "1"
/join abcdef - join room with id "abcdef"
/join abcdef 1 - join room with id "abcdef" and pass 1
/shuffle - command for admin to give roles
/set [role] [num] - set quantity of a role to given number
/roles - print out roles
/quit - exit room
/help - this message

todo

  • add cards images
  • add buttons
  • add history cleaning

mafia-cards-giver's People

Contributors

tort-dla-psa avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.