use of com.gamebuster19901.excite.Wiimmfi in project ExciteBot by TheGameCommunity.
the class OnlineCommand method sendResponse.
public static int sendResponse(MessageContext context, CommandContext<MessageContext> cmdContext) {
Wiimmfi wiimmfi = Main.discordBot.getWiimmfi();
String response;
if (wiimmfi.getError() == null) {
response = "Players Online " + Wiimmfi.getOnlinePlayerList(cmdContext.getInput().equals("online"));
} else {
response = "Bot offline due to an error: \n\n" + StacktraceUtil.getStackTrace(wiimmfi.getError());
}
context.sendMessage(response);
return 1;
}
Aggregations