Update stuff, fix stuff, not my proudest commit
This commit is contained in:
parent
fdcba3a386
commit
ab353d24f6
7 changed files with 18 additions and 12 deletions
18
build.gradle
18
build.gradle
|
@ -5,21 +5,25 @@ plugins {
|
||||||
|
|
||||||
group 'BOT'
|
group 'BOT'
|
||||||
|
|
||||||
version '1.0.0'
|
version '1.0.1'
|
||||||
|
|
||||||
def jdaVersion = '4.2.0_225'
|
def jdaVersion = '4.4.0_350'
|
||||||
def jsonsimpleVersion = '1.1.1'
|
def jsonsimpleVersion = '1.1.1'
|
||||||
def jodatimeVersion = '2.10.6'
|
def jodatimeVersion = '2.10.13'
|
||||||
def self4JVersion = '1.7.30'
|
def self4JVersion = '1.7.32'
|
||||||
def log4jVersion = '2.13.3'
|
def log4jVersion = '2.15.0'
|
||||||
def JSON = '4.12.0'
|
def JSON = '4.13.0'
|
||||||
|
|
||||||
mainClassName = 'MissingIDent'
|
mainClassName = 'MissingIDent'
|
||||||
sourceCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
compileJava.options.encoding = 'UTF-8'
|
compileJava.options.encoding = 'UTF-8'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
jcenter()
|
mavenCentral()
|
||||||
|
maven {
|
||||||
|
name 'm2-dv8tion'
|
||||||
|
url 'https://m2.dv8tion.net/releases'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
@ -18,7 +18,7 @@ public class Admin extends SuperModule {
|
||||||
public static final String command = "admin";
|
public static final String command = "admin";
|
||||||
|
|
||||||
public Admin(GuildController guildController) {
|
public Admin(GuildController guildController) {
|
||||||
super(command, guildController, null);
|
super(command, guildController);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -99,6 +99,9 @@ public class Controller extends ListenerAdapter {
|
||||||
@Override
|
@Override
|
||||||
public void onGenericEvent(@NotNull GenericEvent event){
|
public void onGenericEvent(@NotNull GenericEvent event){
|
||||||
|
|
||||||
|
if (guilds == null)
|
||||||
|
return;
|
||||||
|
|
||||||
if (event instanceof GuildJoinEvent)
|
if (event instanceof GuildJoinEvent)
|
||||||
onGuildJoin((GuildJoinEvent) event);
|
onGuildJoin((GuildJoinEvent) event);
|
||||||
else if (event instanceof GuildLeaveEvent)
|
else if (event instanceof GuildLeaveEvent)
|
||||||
|
|
|
@ -103,7 +103,6 @@ public class GuildController {
|
||||||
if (checkForActivate(Purge.COMMAND))
|
if (checkForActivate(Purge.COMMAND))
|
||||||
modules.add(new Purge(this));
|
modules.add(new Purge(this));
|
||||||
|
|
||||||
|
|
||||||
if (checkForActivate(Quote.command))
|
if (checkForActivate(Quote.command))
|
||||||
modules.add(new Quote(this));
|
modules.add(new Quote(this));
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ public class Help extends SuperModule {
|
||||||
public static final String command = "help";
|
public static final String command = "help";
|
||||||
|
|
||||||
public Help( GuildController guildController){
|
public Help( GuildController guildController){
|
||||||
super(command, guildController, null);
|
super(command, guildController);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -36,7 +36,7 @@ public class Fold extends SuperModule{
|
||||||
userFile = "/home/bots/MissingIdentifier/MissingIdent/user_summary.txt";
|
userFile = "/home/bots/MissingIdentifier/MissingIdent/user_summary.txt";
|
||||||
|
|
||||||
public Fold(GuildController guildController){
|
public Fold(GuildController guildController){
|
||||||
super(COMMAND, guildController, null);
|
super(COMMAND, guildController);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -19,7 +19,7 @@ public class Purge extends SuperModule{
|
||||||
public static final String COMMAND = "purge";
|
public static final String COMMAND = "purge";
|
||||||
|
|
||||||
public Purge(GuildController guildController){
|
public Purge(GuildController guildController){
|
||||||
super(COMMAND, guildController, null);
|
super(COMMAND, guildController);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue