-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRules.java
More file actions
40 lines (33 loc) · 1.18 KB
/
Rules.java
File metadata and controls
40 lines (33 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
public class Rules implements Module {
private String command = "rules";
private Message m;
private boolean admin;
@Override
public String[] outputs() {
String target = "PRIVMSG " + m.getParam();
if(!m.getParam().startsWith("#")) target = "NOTICE " + m.getSender();
if(m.isBotCommand()){
if(m.getBotCommand().equals(command)){
String[] outputs = new String[3];
outputs[0] = target + " :Rule 4: Bots must follow IBIP, this can be found at https://github.com/Teknikode/IBIP";
outputs[1] = target + " :Rule 2: installgen2 is a cuck";
outputs[2] = target + " :Rule 0: No australians";
/*
String[] outputs = new String[5];
outputs[0] = target + " :Rule 1: No Spamming";
outputs[1] = target + " :Rule 2: Tag all NSFW links";
outputs[2] = target + " :Rule 3: Bots must follow IBIP, this can be found at https://github.com/Teknikode/IBIP";
outputs[3] = target + " :Rule 4: installgen2 is a cuck";
outputs[4] = target + " :Rule 5: No australians";
*/
return outputs;
}
}
return null;
}
@Override
public void parse(Message message, boolean isadmin) {
m = message;
admin = isadmin;
}
}