-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Feature Idea: Command to send random, small programming challenges from codewars.com #94
Comments
seems good to me 👍 |
but are you storing the challenges manually? |
No; there's a function which I call to update the database of stored challenges. We could just loop this to be called at specified time intervals automatically |
I had also wanted to include some way to test submissions from users, but unfortunately I couldn't think of any way to extract sample input and output from the API response and all katas don't have examples any way. |
So have you like stored every single challenge there is in a db, and can update with a command, wont that be slow as there are like so many katas? though if we use asyncpg with postgres i think it wouldnt be that slow, if asyncpg doesn't lie about its speed |
I extracted the latest 30 katas everytime I ran I don't think that's so large as to cause performance issues |
Ah alright, seems like a good idea to me, though we would have to wait till we get a db setup |
Fair enough Maybe json could be a temporary solution? In that case I might have to put aside my hatred for the format for the time being lol |
no no no no not json 🙅 |
well that's good news I think |
i think we will have to wait for the db :(( |
sure, no probs. |
You can except the DB pr by next week, a lil busy with a hackathon this weekend |
@ShakyaMajumdar would you like to start working on this? |
I think this could be a fun feature; if someone invokes a command like
!kata
the bot sends a random kata from a db.I have made a bare-bones implementation as a personal project, you could check it out at https://github.com/ShakyaMajumdar/KataBot/blob/master/bot/exts/challenges.py.
This what it looks like currently:
The text was updated successfully, but these errors were encountered: