ptkdev / quizquickanswer-telegram-game-bot Goto Github PK
View Code? Open in Web Editor NEW🎮 Funny quiz game for telegram, play with friends on your group!
Home Page: https://t.me/QuizQuickAnswerBot
License: Other
🎮 Funny quiz game for telegram, play with friends on your group!
Home Page: https://t.me/QuizQuickAnswerBot
License: Other
Update score:
/goodquestion @YOUR_NICKNAME
+10 points if 10 users vote your question
/badquestion @YOUR_NICKNAME
-1 points if 1 user vote your
Print: v1.0.0 (asd4bn6)
v1.0.0 from package.json
asd4bn6 is git commit hash
If response is 90% similar or more, bot tag user and write "🔥 HOT! You almost guessed it!"
Move all ctx.reply()
and ctx.EditMessage
to /api/telegram wrapper
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.
/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
User can send photo to bot as question. Caption is question - tip
, the bot need send same photo to group with tip as caption (without question).
/settings
group can change language or switch game mode
1 correct answer = 10 points
/scores @your_name
show users score from databases/scores.json
/top10
show top 10 of users from group:
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
Add more hint/tips with -
, now:
QUESTION - TIP
Nice to have:
QUESTION - TIP1 - TIP2 - TIP3
Are Showed after 15
, 30
, 50
bad answer.
Disable answer from same author of question
Print the message
The top10 available are:
/top2021
/top2022
/topdaily
/topweekly
/topmonthly
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. |
Providing automation tools to lighten the workload of the moderator.
Thank you!
Command /time 3
and set 3 minutes for answers, after 3 minutes show correct answer and require nominate a new master
/pinquestion
enable or disable auto-pin of the question in the group
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.