Added testing status for bot
This commit is contained in:
parent
c6a07162c3
commit
0d29781713
1 changed files with 3 additions and 1 deletions
|
@ -80,13 +80,14 @@ public class DiscordPlugin extends JavaPlugin implements IListener<ReadyEvent> {
|
||||||
annchannel = mainServer.getChannelByID("126795071927353344"); // announcements
|
annchannel = mainServer.getChannelByID("126795071927353344"); // announcements
|
||||||
genchannel = mainServer.getChannelByID("125813020357165056"); // general
|
genchannel = mainServer.getChannelByID("125813020357165056"); // general
|
||||||
issuechannel = devServer.getChannelByID("219643416496046081"); // server_issues
|
issuechannel = devServer.getChannelByID("219643416496046081"); // server_issues
|
||||||
|
dc.changeStatus(Status.game("on TBMC"));
|
||||||
} else {
|
} else {
|
||||||
botchannel = devServer.getChannelByID("239519012529111040"); // bottest
|
botchannel = devServer.getChannelByID("239519012529111040"); // bottest
|
||||||
annchannel = devServer.getChannelByID("239519012529111040"); // bottest
|
annchannel = devServer.getChannelByID("239519012529111040"); // bottest
|
||||||
genchannel = devServer.getChannelByID("239519012529111040"); // bottest
|
genchannel = devServer.getChannelByID("239519012529111040"); // bottest
|
||||||
issuechannel = devServer.getChannelByID("239519012529111040"); // bottest
|
issuechannel = devServer.getChannelByID("239519012529111040"); // bottest
|
||||||
|
dc.changeStatus(Status.game("testing"));
|
||||||
}
|
}
|
||||||
dc.changeStatus(Status.game("on TBMC"));
|
|
||||||
sendMessageToChannel(botchannel, "Minecraft server started up");
|
sendMessageToChannel(botchannel, "Minecraft server started up");
|
||||||
Runnable r = new Runnable() {
|
Runnable r = new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
|
@ -108,6 +109,7 @@ public class DiscordPlugin extends JavaPlugin implements IListener<ReadyEvent> {
|
||||||
public void onDisable() {
|
public void onDisable() {
|
||||||
stop = true;
|
stop = true;
|
||||||
try {
|
try {
|
||||||
|
dc.changeStatus(Status.game("on TBMC"));
|
||||||
dc.logout();
|
dc.logout();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|
Loading…
Reference in a new issue