Giter Site home page Giter Site logo

ptkdev / quizquickanswer-telegram-game-bot Goto Github PK

View Code? Open in Web Editor NEW
48.0 2.0 10.0 3.45 MB

🎮 Funny quiz game for telegram, play with friends on your group!

Home Page: https://t.me/QuizQuickAnswerBot

License: Other

JavaScript 2.03% Shell 0.38% Dockerfile 0.80% Smarty 0.87% TypeScript 95.93%
telegram game telegram-game quiz telegram-bot telegraf telegram-quiz-game quizquickanswer telegram-group grammy

quizquickanswer-telegram-game-bot's Issues

[Feature request] Vote question

Update score:
/goodquestion @YOUR_NICKNAME +10 points if 10 users vote your question

/badquestion @YOUR_NICKNAME -1 points if 1 user vote your

[Feature request] 10 Question Tournament

You can prepare 10 question and the bot run daily and randomly the tournament.
1° question, 1minute to write correct answer. (no feedback from bot if is good)
2° question, 1minute to write correct answer.(no feedback from bot if is good)
...
10° question, 1minute to write correct answer.(no feedback from bot if is good)

After 10° question bot write top3 of player, the 1° become the super master and can set 10 question for the next tournament.

[Feature request] command: /admin

/admin command that allows to administrate the bot. Nice feature to have are sending messages to all groups or setting a score for a specific user

[Feature request] Scores and TOP10

1 correct answer = 10 points

/scores @your_name show users score from databases/scores.json

/top10 show top 10 of users from group:

  1. username - 100 scores
  2. username - 80 scores
  3. username - 50 scores
  4. username - 10 scores

Example scores.json

{
  "scores": [
    {
      "id": 0,
      "is_bot": false,
      "first_name": "",
      "username": "",
      "language_code": "",
      "score": "10",
      "group_id": -000000000
    }
  ]
}

Extra parameters score and other from ctx.update.message.from

[Feature request] Second tip/hint

Add more hint/tips with -, now:
QUESTION - TIP

Nice to have:
QUESTION - TIP1 - TIP2 - TIP3

Are Showed after 15, 30, 50 bad answer.

[Bug report] Docker not work

Versions

  • App Version: v1.0.0
  • Node Version: v13.0.0
  • Operating System: Windows 10
  • Browser: Google Chrome v80

Expected Behavior

Actual Behavior

Steps to Reproduce

  1. ...
  2. ...
  3. ...

Screenshots (Optional)

[Bug Report] Master off still give the correct answer

Versions

  • App Version: v0.7.7

Expected Behavior

The bot don't have to check if the answer is right

Actual Behavior

The bot says the user is the winner

Steps to Reproduce

  • Set a question
  • Set master to off
  • Write the correct answer

Screenshots

image

[Feature request] Mod commands

Feature description

I suggest adding the following commands for bot moderation. For the implementation we could consider a 1:1 relationship between a single telegram group and a bot instance:

Command Input Description
/mod user_id allows you to set the user to whom the user_id corresponds as the moderator of the bot relative to the group in which it is used. The command should be restricted to the admin.
/endtime HH:mm allows you to set the time at which the master off message should be displayed by specifying the time (hours and minutes). To make it location agnostic, the UTC time zone could be used.
/starttime HH:mm allows you to set the time at which the message assigning the master to the moderator for the start of the game session should be displayed by specifying the time (hours and minutes). To make it location agnostic, the UTC time zone could be used.

Feature motivation

Providing automation tools to lighten the workload of the moderator.

Thank you!

[Feature request] Timeout

Command /time 3 and set 3 minutes for answers, after 3 minutes show correct answer and require nominate a new master

[Bug Report] Master can answer it's own question

Versions

  • App Version: v0.7.7

Expected Behavior

If master give's the correct answer, the bot shouldn't take it as valid

Actual Behavior

The bot says the current muster is the winner of is own question

Steps to Reproduce

Give the master yourself, create a question and give the right answer
image

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.