-
Notifications
You must be signed in to change notification settings - Fork 1
/
rules.py
19 lines (18 loc) · 1.04 KB
/
rules.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from util import hook
@hook.command
def rules(inp, conn=None, chan=None):
if " " in inp:
command,user = inp.split(" ")
if command == "spam":
return user + ": Your issue was too long. Go to http://pastebin.com and link your issue from there.";
if command == "nick":
return user + ": Please change your nick by typing /nick my_nickname";
if command == "nocoop":
return user + ": You've been helped on the matter and will receive no further help or advice. Thank you for your (non-existent) cooperation.";
if command == "abuse":
return user + ": Abusing the bot might cause you to be kicked from the channel, please refrain from it.";
else:
if inp == "debug":
conn.cmd("PRIVMSG " + chan + " This is a debug message. Thank you for listening.");
else:
return inp + ": Welcome to #techsupport! | Do not ask for help or specific skills, just state your issue. | For verbose descriptions, use a pastebin or a link to your /r/techsupport thread. | Generic nicks must be changed by typing /nick <nickname>. | Please be patient and don't spam.";