python-discord / sir-lancebot

A Discord bot started as a community project for Hacktoberfest 2018, later evolved to an introductory project for aspiring new developers starting out with open source development.
MIT License
242 stars 240 forks source link

Add Python Challenge Command #1061

Open NeilShah2026 opened 2 years ago

NeilShah2026 commented 2 years ago

Allow users to use a command like !challenge and it would send a python question (Basic or Advanced) and users can try and solve it, and they can test their solution. If thy get it correct, they get a point, and there can be a weekly/monthly leaderboard.

DMFriends commented 2 years ago

Uhh I think there already is a command similar to what you proposed: https://github.com/python-discord/sir-lancebot/blob/main/bot/exts/utilities/challenges.py#L264-L336

MarkKoz commented 2 years ago

@NeilShah2026 is that what you had in mind or was it something different? In any case, a leaderboard was suggested, and that does not seem to be implemented currently so it's open to discussion.

ShakyaMajumdar commented 2 years ago

A leaderboard would be difficult to implement on Lance since it doesn't have persistence

(side note: I'm currently working on Sir Robin for an event, and will be implementing a leaderboard for that soon)