In this task, you will be creating a Discord bot which responds to commands. You should use the project set up in the last task. Commit and push your code after each task is done.
Create a test Discord server for all your testing. Assign the a Hasbulla image to the server icon.
Create a bot using the Discord Developer panel. Assign it all "Text Permissions" and keep the token safe for the next step.
In order to setup a Discord bot, import the JDA library via Maven.
For the next tasks you will need to use the JDA documentation. It contains various examples you must adapt in your own code. You should create a Main class with a main method.
In order to create a bot using JDA you need to pass the token generated earlier as the first parameter. However, you should not store the token within your code. Can you think why?
Instead, we need to use program arguments. Set the program argument in IntelliJ to contain your token.
Configure the bot so that when you start up your application your bot shows up as "Online" in your test server.
Configure the bot so that the status of the bot shows up as "Hanz Dirtyson!"
Make the bot respond when a user sends a "!hanz" command. The bot should respond with "Kanch".
Make the bot respond when a user sends a "!time command. The bot should respond with the current time.
Make the bot respond when a user sends a private message. The bot should respond with "Hello username here, you sent me message content here".