strich-omat
Do you need basic knowledge or do you want to see if you have a little basic knowledge? Then I'm glad to see you here!
This npm package offers 130 general knowledge questions. They all differ in topics like "General", "Movies", "Sports" and so on. Each question has its own ID, from 1 to 130. You also have the opportunity to get audios for audio quizzes or even to add your own!
Installation
$ npm install strich-omat
Example
var som = require('strich-omat')
som.creator()
// "Discord: Strich#2023"
som.addquestion('How old is Strich?', '17')
// "[ 'How old is Strich?', '17', '131' ]"
som.addaudio('https://www.youtube.com/watch?v=HYsz1hP0BFo', 'STAR WALKIN')
// "[ 'https://www.youtube.com/watch?v=HYsz1hP0BFo', 'STAR WALKIN', '11' ]"
som.getall('2')
// "[ 'Wie lautet der Titel des ersten Carry-On-Films, der 1958 gedreht und veröffentlicht wurde?', 'Trage Sergeant', '2' ]" - Note that you can choose any number from 1 to 130!
som.getall.audio('2')
// The same but for audio quizzes!
som.getall('random')
// '[ "Wer hat 1934 Cat's Eyes erfunden, um die Verkehrssicherheit zu verbessern?', 'Percy Shaw', '37' ]" - Note that the question will always be random!
som.getall.audio('random')
// The same but for audio quizzes!
som.getquestion('2')
// "[ 'Wie lautet der Titel des ersten Carry-On-Films, der 1958 gedreht und veröffentlicht wurde?' ]" - Note that you can choose any number from 1 to 130! You can also choose "random".
som.getaudio('2')
// The same but for audio quizzes!
som.getanswer('2')
// "[ 'Trage Sergeant' ]" - Note that you can choose any number from 1 to 130! You can also choose "random".
som.getaudioanswer('2')
// The same but for audio quizzes!
som.getid('Trage Sergeant')
// "[ '2' ]" - Note that you can enter questions and answers! Make sure the string euqals any existing questions or answers from these 130!
som.getid.audio('Ride')
// The same but for audio quizzes!
Usage
som.addquestion('How old is Strich?', '17')
// "[ 'How old is Strich?', '17', '131' ]"
som.addaudio('https://www.youtube.com/watch?v=HYsz1hP0BFo', 'STAR WALKIN')
// "[ 'https://www.youtube.com/watch?v=HYsz1hP0BFo', 'STAR WALKIN', '11' ]"
Use this function to add your own questions, audios and answers to your project!
som.getall('2')
// "[ 'Wie lautet der Titel des ersten Carry-On-Films, der 1958 gedreht und veröffentlicht wurde?', 'Trage Sergeant', '2' ]" - Note that you can choose any number from 1 to 130!
som.getall.audio('2')
// The same but for audio quizzes!
som.getall('random')
// '[ "Wer hat 1934 Cat's Eyes erfunden, um die Verkehrssicherheit zu verbessern?', 'Percy Shaw', '37' ]" - Note that the question will always be random!
som.getall.audio('random')
// The same but for audio quizzes!
som.getquestion('2')
// "[ 'Wie lautet der Titel des ersten Carry-On-Films, der 1958 gedreht und veröffentlicht wurde?' ]" - Note that you can choose any number from 1 to 130! You can also choose "random".
som.getaudio('2')
// The same but for audio quizzes!
som.getanswer('2')
// "[ 'Trage Sergeant' ]" - Note that you can choose any number from 1 to 130! You can also choose "random".
som.getaudioanswer('2')
// The same but for audio quizzes!
som.getid('Trage Sergeant')
// "[ '2' ]" - Note that you can enter questions and answers! Make sure the string euqals any existing questions or answers from these 130!
som.getid.audio('Ride')
// The same but for audio quizzes!
Use this function to get all information (question, answer, audio or id) specific to certain strings or numbers.