-
Put
.env
file in the top level folder /akindi-discord-mcq. Sent the file in email. -
Run:
docker-compose up
-
You should see the server running.
-
First make sure the channel you want to add the bot to does not have 15 webhooks already. Otherwise it will not allow to add a new one.
-
Now in the browser go to this link: https://discord.com/oauth2/authorize?client_id=1080936200153608202&redirect_uri=https%3A%2F%2Fakindi-discord-mcq.ngrok.io%2Foauth-redirect&response_type=code&scope=webhook.incoming
-
It will ask you to choose your server and the channel you want to add the bot to. Make sure you are permitted to add the bot.
-
After clicking the
Authorize
button, you should see a success response message. -
Now to post a questin to this channel, make this curl request:
curl --location --request GET '0.0.0.0:5000/send_question/<question_id>'
example:curl --location --request GET '0.0.0.0:5000/send_question/1'
-
If successful you should see the question with options in the channel which you can interact with.
-
Answer the question and it should tell you if the answer was right or wrong.
-
WARNING: as there is no session implemented, if you stop the server, you will have to run all the steps again.
-
Notifications
You must be signed in to change notification settings - Fork 0
shakurshams/akindi-discord-mcq
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published