Assignment is to create a Discord bot and implement some basic commands. Discord is a chat platform that's mostly used by the gaming community. See the instructions below for the assignment.
-
Signup with discord (http://discordapp.com).
-
Create a simple discord bot that would reply hey to your hi.
-
Add functionality to allow a user to search on google through discord. If the user types !google nodejs, reply with top 5 links that you would get when you search nodejs on google.com
-
Implement functionality to search through your search history. If a user uses !google to search for "nodejs" "apple games" "game of thrones", and after these searches, if user types !recent game, your bot should reply with "apple games" and "game of thrones"
-
Make user search history persistent. Use any storage system to store your searches, so even when you kill your nodejs server and start again, your search history is maintained.
-
You can use any language like Python, Nodejs, Golang etc to implement this.
Once you are done, please share with us:
- Source code link (GitHub, BitBucket, etc)
- Share us the Discord bot name and invite URL of the bot, so that we can add it to our server and try it out.
- You have to deploy the bot on cloud for us to test
- Modularize your code well. Putting everything in one file is not good.
- Use external DB/cache to store the history. Storing on local files and local variables is not desirable.
- Put proper comments in code , so that we can understand the function usage etc..
- How to create/publish Discord bot? Click here
- How to search on google using API ? Click here
- How to deploy Python App online? Click here
- How to deploy NodeJs App online? Click here
- How to create Repo in GitHub? Click here