forked from TheCurle/Camelot
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7885660
commit 18cc24a
Showing
3 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
config/src/main/groovy/net/neoforged/camelot/config/module/MessageReferencing.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package net.neoforged.camelot.config.module | ||
|
||
import groovy.transform.CompileStatic | ||
|
||
/** | ||
* The module controlling message referencing. | ||
*/ | ||
@CompileStatic | ||
class MessageReferencing extends ModuleConfiguration { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/main/java/net/neoforged/camelot/module/MessageReferencingModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package net.neoforged.camelot.module; | ||
|
||
import com.google.auto.service.AutoService; | ||
import net.dv8tion.jda.api.JDA; | ||
import net.neoforged.camelot.config.module.MessageReferencing; | ||
import net.neoforged.camelot.listener.ReferencingListener; | ||
|
||
/** | ||
* Module for message referencing using {@code .} replies. | ||
*/ | ||
@AutoService(MessageReferencing.class) | ||
public class MessageReferencingModule extends CamelotModule.Base<MessageReferencing> { | ||
public MessageReferencingModule() { | ||
super(MessageReferencing.class); | ||
} | ||
|
||
@Override | ||
public void setup(JDA jda) { | ||
jda.addEventListener(new ReferencingListener()); | ||
} | ||
|
||
@Override | ||
public String id() { | ||
return "message-referencing"; | ||
} | ||
} |