Commit 5b893acf authored by Luke081515's avatar Luke081515

Update to new accountname

* Set nick and account to ciabot.
* Remove old code from codebase.
parent f59a19b2
......@@ -4,10 +4,9 @@ import java.sql.*;
public class CIABot extends PircBot {
DB Database;
public CIABot(boolean verbose, String pwd) {
this.setLogin("Luke081515Bot");
this.setName("Luke081515Bot");
this.setLogin("ciabot");
this.setName("ciabot");
Database = new DB();
wikimedia = new String [0];
}
public void onMode(String channel, String sourceNick, String sourceLogin, String sourceHostname, String mode) {
System.out.println (mode);
......@@ -21,16 +20,14 @@ public class CIABot extends PircBot {
partChannel ("#" + message.substring(message.lastIndexOf("#") + 1));
} else {}
} else if (hostname.toLowerCase().contains("tnb/staff/luke081515")) {
if (message.startsWith("§join ")) {
if (message.startsWith("$join ")) {
joinChannel ("#" + message.substring(message.lastIndexOf("#") + 1));
} else if (message.startsWith("§part ")) {
} else if (message.startsWith("$part ")) {
partChannel ("#" + message.substring(message.lastIndexOf("#") + 1));
} else if (message.startsWith("§nick ")) {
} else if (message.startsWith("$nick ")) {
changeNick (message.substring(message.lastIndexOf(" ") + 1));
} else if (message.startsWith("§quit")) {
} else if (message.startsWith("$quit")) {
System.exit(0);
} else if (message.startsWith ("§purge")) {
removeExpired();
} else {}
} else {}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment