codewars / discord-bot

Codewars Discord Bot
MIT License
22 stars 11 forks source link

Change the command '/info user' #65

Closed Djacon closed 2 years ago

Djacon commented 2 years ago

At the moment, the command performs the simple function of showing the user name and ID on the server. I find the command not so useful. Instead, we can create a function that will show a little info about the Codewars user. The information includes: username, rank, honor, leaderboard position, number of katas created, number of katas completed.

The information will be displayed like this: info_user

Djacon commented 2 years ago

Command is ready, if you approve my idea, I will send pull request

kazk commented 2 years ago

/info was added as an example for subcommands when migrating to (/) commands. Having Discord server info and Codewars user info under the same command feels kind of awkward.

I'm not against adding a command to get information from Codewars. I have local commits to clean up /rankup from last week, and we can add actual getUser function in the codewars.ts instead.

Djacon commented 2 years ago

Okay, I moved my getUserInfo function to the new /userinfo command. Now the command should not affect your local changes too much