samuelsogbesan / leetbot

LeetCode Question Bot for Discord.
Apache License 2.0
1 stars 0 forks source link

Random Question Query 🎛️ #30

Closed samuelsogbesan closed 3 years ago

samuelsogbesan commented 3 years ago

Create the query that fetches a random question of a particular difficulty.

This relies on changes coming from #29 that integrate an enum used to standardise references to difficulty throughout the code base.

This PR shrinks the question queries all the way down because we can now rely on the enum to ensure valid difficulties are used, meaning no need more getRandomEasyQuestion, getRandomMediumQuestion, getRandomHardQuestion.