|
|
|
@ -11,6 +11,7 @@ import java.util.logging.Logger;
|
|
|
|
|
public abstract class AbstractModule
|
|
|
|
|
{
|
|
|
|
|
protected Logger logger;
|
|
|
|
|
protected IDiscordClient client;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Constructor doing all the basic stuff, like registering as a Listener to Discord, getting a logger, etc.
|
|
|
|
@ -22,5 +23,6 @@ public abstract class AbstractModule
|
|
|
|
|
client.getDispatcher().registerListener(this);
|
|
|
|
|
logger = Logger.getLogger(this.getClass().getName());
|
|
|
|
|
logger.info("Loading module " + this.getClass().getName());
|
|
|
|
|
this.client = client;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|