Qurancord is a discord bot to search for and obtain surahs and/or verses of Quran from the internet. Built using Spring Framework and JDA
This project is built on top of JVM Technology which will require Java 21 and using Gradle as dependency management. Quran's sources are obtained from https://alquran.cloud/api.
These are the dependencies used:
This bot is mostly uses the Discord Slash Command. The following is a list of the commands:
Command | Options | Description | |
---|---|---|---|
/surah find |
number: int |
Find surah information based on specified number | |
/surah search |
keyword: str |
Search surah information based on specified name keyword | |
/surah random |
- | Get randomized surah information | |
/ayah find |
surah: int number: int image?: bool |
Find an ayah from specified options | |
/ayah search |
keyword: str image?: bool |
Search ayah translations based on specified keyword | |
/ayah random |
surah?: int image?: bool |
Get randomized ayah information |
Requirement:
Procedure:
git clone https://github.com/stackpan/qurancord.git
cd /path/to/qurancord
app/src/main/resources/application.properties.example
cp app/src/main/resources/application.properties.example app/src/main/resources/application.properties
discord.bot-token
key inside app config:
discord.bot-token=YOUR_COPIED_TOKEN
./gradlew bootRun