galacticwarrior9 / IslamBot

A Discord bot that supports Qur'an, hadith, prayer times, tafsir and more.
GNU General Public License v3.0
88 stars 37 forks source link

Option to specify the quranic sura numbers according to the chronological order or by name #5

Closed erkinalp closed 2 years ago

Khalifa1997 commented 3 years ago

Can you elaborate?

erkinalp commented 3 years ago

Each surah in Quran has a traditional name. And surahs appeared in a different order from the canonical order that appears in Quran.

itzmk21 commented 2 years ago

So, when doing -quran 1:1, it shows Surah Iqra instead of Surah Fatihah, and users have the option of that in settings/config?

erkinalp commented 2 years ago

Yes the chronological ordering would work like that.

itzmk21 commented 2 years ago

Will try to implement this with slash commands, since having another optional parameter is so much easier with them (The by chronological number)

itzmk21 commented 2 years ago

Name should be possible by making the parameter surah a string and, similar to how Iqra does it, try to convert to a number and if not then, use fuzzywuz to get the Surah name