thaithimyduyen / Poker-Telegram-Bot

https://t.me/online_poker_bot
MIT License
7 stars 7 forks source link

ERROR - The cards are not showing (no cards) #1

Closed future2back closed 3 years ago

future2back commented 3 years ago

Hello @thaithimyduyen how are you? I m trying to test this project but faced some dificulties

Created a file token.txt with content: TOKEN="YOUR TOKEN" replacing YOUR TOKEN to my token eg: TOKEN="21321321dsadasds123113213" But got invalid token, so bypassed it on main.py

#!/usr/bin/env python3

from app.pokerbot import PokerBot

def main():
    token = "21321321dsadasds123113213"
    bot = PokerBot(token=token)
    bot.run()

if __name__ == "__main__":
    main()

then it started listening so after /ready command got this error:

redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused. Solved by installing redis-server

sudo apt-get install redis-server

After that game start working but cards are not sent by bot and getting "no cards".

Do you have any idea?

Thank you!!!

thaithimyduyen commented 3 years ago

Hello @future2back!

When all players are /ready, you should send /start.

Could you send me your telegram username and we test it together?

future2back commented 3 years ago

@thaithimyduyen thanks for supporting!

1# Solution provided token file issue:

use make token.txt TOKEN="YOUR TOKEN" to create it.

2# Solution provided not showing cards issue: You informed it's a telegram client issue on iphones use /cards and cards to see it!

Thank you again, i will be closing it!