Communauté Eggdrop
Trivia with API - Version imprimable

+- Communauté Eggdrop (https://forum.eggdrop.fr)
+-- Forum : English help (https://forum.eggdrop.fr/forumdisplay.php?fid=25)
+--- Forum : Tcl scripts (https://forum.eggdrop.fr/forumdisplay.php?fid=27)
+---- Forum : Script requests (https://forum.eggdrop.fr/forumdisplay.php?fid=32)
+---- Sujet : Trivia with API (/showthread.php?tid=1791)



Trivia with API - aslpls - 24/05/2024

hi guys, good day to you all. I think that you are familiar with this link API TRIVIA hopefully anyone can do apply this api in existing  available trivia right now? If it is possible.


RE: Trivia with API - CrazyCat - 24/05/2024

I didn't know this API, but it could be possible to use it as trivia DB. But it will only be in english (didn't find any language option), so I don't think anyone here already used it.
You can use it in two ways:
1. request 50 questions/answers in one time and store them in eggdrop memory
2. request question/answer one per one using a token

You can probably adapt any trivia script to use this source


RE: Trivia with API - aslpls - 26/05/2024

i knew already someone using this API, but it is a multiple choice and the answer is A,B,C,D, not the exact answers same in old trivia. if someone can make it the answers same in old trivias that much better.


RE: Trivia with API - CrazyCat - 26/05/2024

It will be quicker to give us the script, then we can adapt it, rather than recreate or start from a script which isn't what you want.


RE: Trivia with API - aslpls - 26/05/2024

here it is https://github.com/damiankw/trivia.eggdrop.tcl

and i think this is his script for personal use. Smile