Using an IDE

We highly suggest you use an IDE for writing your bot as it can drastically improve your development experience. To use any IDE, you can simply open the directory of your bot with it.

To learn how to use a step debugger integrated into your IDE, check here.

Using Java/Kotlin bot with IDE

To use Java or Kotlin bot with IDE you need to import your full bot directory as a Gradle project. After that you can fight with your bot using play or you can run it in debug mode as explained here.

Example: IntelliJ IDEA

We will demonstrate how to import your code in IntelliJ IDEA, but the process should be similar in all other IDEs. We are by no means affiliated with JetBrains, the creators of IntelliJ IDEA, this IDE is used here just as an example.

To open your bot (eg. john) in IntelliJ IDEA you need to go through the following steps:

  1. Launch IDEA and click Open on the welcome screen.
     
    Open IntelliJ IDEA
  2. Locate your bot (eg. john), mark it and then choose OK.
     
    Path to John
  3. On the next screen tick Use auto-import checkbox and click OK.
  4. Editor will open up and you will see Gradle installing dependencies. Wait until it is finished.

After that you should be ready to go. Happy coding!