A discord bot integrated with Codewars api .
- Get codewars profile details by using username
- Get codewars profile details by just mentioning the user
!code hi
!code info <codewars_username>
!code reg <username> <@mention>
=> Registers the user to database. Hereusername
is codewars username of the member.
!code info <@mention>
=> If the member is registered in the database you can just get details by mentioning the member.
!code showall
=> To view the Table in the database.
!code del <@mention>
=> To delete the user from the database.
This app can be easily deployed to heroku. Firstly you need to create a discord bot at Discord Developer portel. You can use this tutorial for help. Keep the bot token in handy . Now..
- Fork this repo to your Github account.
- Visit heroku . Create an app.
- Go to Deploy > Deployment method . Click on "Connect to Github" to link your github account.
- Go to Connect to github section. Select your account and write codebot in the search box. Click on search.
- A repo will appear below . Click on connect.
- Scroll below and click on 'Deploy'.
- Go to Settings > Config vars > Reveal Config vars. Write
DISCORD_TOKEN
inKEY
and paste the Bot token obtained from discord portal in theVALUE
- Go to resources > Add-ons and search for heroku postgres. Add it to your app (no credit card needed).
- Go to resources > Free Dyno . Turn on the * Go to resources > Free Dyno . Turn on the
worker python launcher.py
. - Your app is live.