Skip to content

Simple discord music bot written in java using JDA & Lavaplayer

License

Notifications You must be signed in to change notification settings

PancakesTF/JavaMusicBot

Repository files navigation

JavaMusicBot

The source code for dabBot

Setup

  1. Compile using maven

     mvn clean package        
    
  2. Create config.toml

     token  = "Bot application token"
     owner  = "Owner discord user id"
     regex  = "Command parser regex pattern"
     game   = "Current playing game"
     invite = "Bot invite link"
     about  = "About text"
     join   = "Server join message"
     carbon = "carbonitex.net api key"
     dbots  = "bots.discord.pw api key"
    

    Sample pattern: ^\\?([a-zA-Z]+)(?:\\s+)?(.*)? - for ? as the prefix.

  3. Run the bot

     java -jar target/JavaMusicBot.jar
    

Dependencies

Dependencies are managed by Maven. See the maven pom.xml file.

<dependency>
    <groupId>net.dv8tion</groupId>
    <artifactId>JDA</artifactId>
    <version>3.0.BETA2_122</version>
</dependency>
<dependency>
    <groupId>com.sedmelluq</groupId>
    <artifactId>lavaplayer</artifactId>
    <version>1.1.42</version>
</dependency>
<dependency>
    <groupId>com.moandjiezana.toml</groupId>
    <artifactId>toml4j</artifactId>
    <version>0.7.1</version>
</dependency>
<dependency>
    <groupId>com.mashape.unirest</groupId>
    <artifactId>unirest-java</artifactId>
    <version>1.4.9</version>
</dependency>
<dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-lang3</artifactId>
    <version>3.5</version>
</dependency>

License

Licensed under Creative Commons Attribution NonCommercial (CC-BY-NC). See the LICENSE file in the root directory for full license text.

License summary (not legal advise, read the full license)

Source: tldrlegal.com

About

Simple discord music bot written in java using JDA & Lavaplayer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages