mirror of
https://github.com/bytedream/untisbot-discord.git
synced 2025-05-11 13:15:08 +02:00
Bugfix for non sql user
This commit is contained in:
parent
cc7e1e4999
commit
bc3f6514d7
@ -74,6 +74,7 @@ public class DiscordCommandListener extends ListenerAdapter {
|
|||||||
statsDataConnector = dataConnector.statsConnector();
|
statsDataConnector = dataConnector.statsConnector();
|
||||||
this.languages = languages;
|
this.languages = languages;
|
||||||
|
|
||||||
|
if (storeType == StoreType.MARIADB) {
|
||||||
new Timer().scheduleAtFixedRate(new TimerTask() { // just execute this so that the connect won't have a timeout
|
new Timer().scheduleAtFixedRate(new TimerTask() { // just execute this so that the connect won't have a timeout
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
@ -85,6 +86,7 @@ public class DiscordCommandListener extends ListenerAdapter {
|
|||||||
}
|
}
|
||||||
}, 0, TimeUnit.HOURS.toMillis(1));
|
}, 0, TimeUnit.HOURS.toMillis(1));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Runs a command
|
* Runs a command
|
||||||
|
Loading…
x
Reference in New Issue
Block a user