Code Monkey home page Code Monkey logo

truco's Introduction

Hi there ๐Ÿ‘‹

truco's People

Contributors

feliperenan avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

truco's Issues

Process a telegram message async

Once a message has been received from Telegram through Webhooks, it can be processed async. Besides answering the telegram right away that the app received the message, this approach will avoid telegram to re-send the message in case this telegram_bot crashes for any reason (which is happening today).

For now, if the app crashes, we don't need to worry if the telegram message is going to be lost since it can be sent again by the User.

https://github.com/feliperenan/truco/blob/master/apps/telegram_bot/lib/telegram_bot/endpoint.ex#L50

Add possibility for users to play this game on multiple groups

Currently it is not possible to play this game on multiple group simultaneously because I could not figure out a good way of doing so with inline queries yet.

The main issue is that we can't get the chat_id when a inline query is sent by the User so we can't say which games the user belongs to. For now, since I added this limitation on telegram bot that one user will be in just one game, from its ID I'm able to find which game he is associated to.

Keep in mind this is a Telegram bot limitation, in other words, the game engine is ready for this feature, I just need to figure out how to do so on telegram chat with inline queries.

https://core.telegram.org/bots/api#inline-mode

Players may run away from a match

Player might want to run away from a game in case their cards does not look good for them. In that case, the are giving up about that match giving one point to the another team.

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.