Skip to content

Installing HalpBot

pumbas600 edited this page Aug 16, 2021 · 8 revisions

Prerequisites

  • HalpBot-Core 1.0.1
  • Java 11+
  • JDA version 4.3.0_285+

Adding HalpBot to Your Project

You can add HalpBot to your project by downloading HalpBot-Core-1.0.1.jar from here: https://github.com/pumbas600/HalpBot/releases/tag/1.0.1

In your project create a new folder called libs and place the downloaded .jar inside. Your project should look something like this:

HalpBotJarFile

In your build.gradle file, you'll then need to add the following:

repositories {
    mavenCentral()

    // Import the JDA Library
    maven {
        name 'm2-dv8tion'
        url 'https://m2.dv8tion.net/releases'
    }
}

dependencies {
    // Load all .jar files from /libs
    implementation fileTree(dir: 'libs', include: '*.jar')
    // Load the JDA Library
    implementation 'net.dv8tion:JDA:4.3.0_285'
}

// This is used by the built in 'Halp' command to generate command usages.
tasks.withType(JavaCompile) {
    options.compilerArgs << '-parameters'
}

And just like that, you're all set to start using HalpBot.

Continue to: Creating Your First Command

Clone this wiki locally