JDA-Applications / JDA-Utilities

A series of tools and utilities for JDA to assist in bot creation
Apache License 2.0
215 stars 108 forks source link

[Suggestion] Custom Guild Prefixes #37

Closed KaizerZen closed 6 years ago

KaizerZen commented 6 years ago

So... My users recently asked for a way to change the default bot's prefix per guild, and since commands are managed by JDA-Utils it should have a way of setting a custom guild prefix.

Shengaero commented 6 years ago

We have been discussing ways to implement a light datasystem for doing such a thing.

However, at this moment in time implementation is not scheduled.

KaizerZen commented 6 years ago

Okay.

Anyway there's a function on CCB I can use to set a custom implementantion of MessageReceivedEvent to detect a Guild custom prefix?

jagrosh commented 6 years ago

There's not but you could either fork the repo and add it, or make a class that extends CommandClientImpl and use that

KaizerZen commented 6 years ago

Fine.

Shengaero commented 6 years ago

Just to update this guild specific configurations and data management will be a supported feature in 2.0 You can see these changes in the version-major/2.0, and even check out the branch using the following build-scripts:

Gradle

repositories {
    maven { url 'https://jitpack.io' }
}
dependencies {
    compile 'com.github.JDA-Applications:JDA-Utilities:version-major~2.0-SNAPSHOT'
}

Maven

  <repository>
    <id>jitpack.io</id>
    <url>https://jitpack.io</url>
  </repository>
  <dependency>
    <groupId>com.github.JDA-Applications</groupId>
    <artifactId>JDA-Utilities</artifactId>
    <version>version-major~2.0-SNAPSHOT</version>
    <scope>compile</scope>
  </dependency>

As a final note, this gist shows a detailed compilation of all the changes in 2.0, and I highly recommend you read it, as there are breaking changes that occur.

Shengaero commented 6 years ago

Addressed in #51