project revival?

This commit is contained in:
deepCurse 2024-12-31 22:15:21 -04:00
parent 4d3c17e054
commit c26e74066b
Signed by: u1
GPG key ID: AD770D25A908AFF4
4 changed files with 16 additions and 16 deletions

View file

@ -60,7 +60,7 @@ public class Help implements GuildCommandInterface {
commandNameList = null;
}
// blob.getChannel().sendMessage(commandHash.toString()).queue();
blob.getChannel().sendMessage(commandHash.toString()).queue();
for (HelpPage i : HelpPage.values()) {
if (commandHash.get(i) != null) {

View file

@ -3,6 +3,7 @@ package pkg.deepCurse.nopalmo.core;
import java.io.IOException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.impl.SimpleLoggerFactory;
import net.dv8tion.jda.api.JDA;
@ -25,7 +26,7 @@ import pkg.deepCurse.nopalmo.utils.LogHelper;
public class Boot {
public static JDA bot; // TODO create sharding handler
private static Logger logger = new SimpleLoggerFactory().getLogger(Boot.class.getSimpleName());
private static Logger logger = LoggerFactory.getLogger(Boot.class.getSimpleName());
public static final CommandManager commandManager = new CommandManager();
// public static BontebokManager bontebokManager = null;
@ -92,7 +93,7 @@ public class Boot {
.enableCache(CacheFlag.EMOTE, CacheFlag.MEMBER_OVERRIDES)
// .setIdle(true)
.setIdle(true)
.setAutoReconnect(true)

View file

@ -35,7 +35,6 @@ public class NopalmoDBTools {
private static DbContextTable actions = null;
private static DbContextTable infractions = null;
private static MysqlDataSource dataSource = null;
public static void init(String dbName, String username, String pass) {
// logger.info("Connecting. . .");

View file

@ -6,17 +6,17 @@ import java.net.Socket;
public class Socks {
public static void sendStringSock(String address, int port, String input) {
try {
Socket cSocket = new Socket(address, port);
DataOutputStream dOut = new DataOutputStream(cSocket.getOutputStream());
dOut.writeUTF(input);
dOut.flush();
dOut.close();
cSocket.close();
} catch (IOException e) {
e.printStackTrace();
}
}
// public static void sendStringSock(String address, int port, String input) {
// try {
// Socket cSocket = new Socket(address, port);
// DataOutputStream dOut = new DataOutputStream(cSocket.getOutputStream());
// dOut.writeUTF(input);
// dOut.flush();
// dOut.close();
// cSocket.close();
// } catch (IOException e) {
// e.printStackTrace();
// }
// }
}