Rewrote the DBHandler child classes for less repetition
Made tafsir commands into a group:
/tafsir get .../tafsir set_default_tafsir - not a flattering name, but up to you
/atafsir get .../atafsir set_default_atafsir
This requires you to create new tables:
For Tafsir columns:
server which is the guild_id so up to you what datatype
tafsir which is the tafsir_name similar to the translation name similarly stored, so a string-based datatype e.g "maarifulquran" will be stored
For Arabic Tafsir columns:
server - the guild_id
atafsir (could change the name), e.g: "tabari" will be stored
Closes #55
Use the app_commands.Range annotation to have built in range check, that checks if the page is between 1 and 604 for /mushaf by_page as well as for the daymonth and year args for /calendar commands
Update the help command embed to make mention slash commands - closes #62
Added the context menu command that gets the Qur'an ayah from a URL This was tested with the following links, all of which work as intended:
Closes #40
Rewrote the DBHandler child classes for less repetition Made tafsir commands into a group:
/tafsir get ...
/tafsir set_default_tafsir
- not a flattering name, but up to you/atafsir get ...
/atafsir set_default_atafsir
This requires you to create new tables: For Tafsir columns:
server
which is theguild_id
so up to you what datatypetafsir
which is thetafsir_name
similar to the translation name similarly stored, so a string-based datatype e.g "maarifulquran" will be stored For Arabic Tafsir columns:server
- theguild_id
atafsir
(could change the name), e.g: "tabari" will be storedCloses #55
Use the
app_commands.Range
annotation to have built in range check, that checks if the page is between 1 and 604 for/mushaf by_page
as well as for theday
month
andyear
args for/calendar
commandsUpdate the help command embed to make mention slash commands - closes #62