Unnamed
public text v1 · immutable //lets hope this works, setting the quite some strings :)
java.net.InetAddress i = java.net.InetAddress.getLocalHost();
System.out.println(i); // name and IP address
System.out.println(i.getHostName()); // name
System.out.println(i.getHostAddress()); // IP address only
String HostName = i.getHostName();
String HostAddress = i.getHostAddress();
if(message.equalsIgnoreCase("!ip")) {
sendMessage(channel, username + "@" + HostName + "/" + HostAddress);
}