-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhircrc.sample
97 lines (94 loc) · 2.97 KB
/
hircrc.sample
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
Server "irc.datanet.ee" 6667
Nick "Hircb0t"
Encoding Utf8
On /^!quit$/ [
Perm "root",
Quit "Returning to hell..."
]
On /^!reload$/ [
Perm "root",
Rehash,
Say "Matrix ok."
]
On /^= ([^:?]*)$/ [Calc "$1"]
On /^(\?\?? .*|!\? .*|!new$)/ [Plugin ["/usr/bin/perl","dict.pl"] "$: $1"]
On /^((!learn|!add) .*)/ [
Perm "mdict",
Plugin ["/usr/bin/perl","dict.pl"] "$: $1"
]
On /^((!brainwash|!bite|!forget) .*)/ [
Perm "dict",
Plugin ["/usr/bin/perl","dict.pl"] "$: $1"
]
On /^!say\s+((!learn|!add) .*)/ [
Perm "mdict",
Append "say.log" "<$:> $1\n",
SayTo "#hirctest" "$1",
Plugin ["/usr/bin/perl","dict.pl"] "$: $1"
]
On /^!insult\s+(\S(.*\S)?)\s*$/ [
Perm "dict",
RandLine "insult.txt"
]
On /^!insult\s*$/ [RandLine "insult.txt"]
On /^!compliment\s+(\S(.*\S)?)\s*$/ [RandLine "compliments.txt"]
On /^!history +([^ ].*)/ [
Perm "dict",
Exec "./history" ["base.dict","$1"]
]
On /^!seen *$/ [RandLine "insult.txt"]
On /^!seen +([^ ]+)/ [Exec "/usr/bin/perl" ["seen.pl","$0","$1"]]
On /^!decide\s+(\S.*)$/ [Exec "/usr/bin/perl" ["decide.pl","$1"]]
On /^!plan\s+(\S.*)$/ [
Perm "mdict",
Say "1. $1",
Say "2. ...",
RandLine "plans.txt"
]
On /^!time$/ [Exec "/bin/date" []]
On /^!country\s+(\w+)/ [Exec "./acrogrep" ["countries.txt","$1"]]
On /^!say\s+((m8ga\W*|T3EE\W*)*(.*))$/ [
Perm "mdict",
Append "say.log" "<$:> $1\n",
SayTo "#hirctest" "$3"
]
On /^!emote\s+(.*)$/ [
Perm "mdict",
Append "say.log" "* $:\t$1\n",
SayTo "#hirctest" "\SOHACTION $1\SOH"
]
On /^!ilm$/ [Plugin ["/usr/bin/perl","ilm.pl"] ""]
On /^!vera +(\w+)/ [Exec "./acrogrep" ["vera.txt","$1"]]
On /^!rfc +(\w+)/ [Exec "/usr/bin/perl" ["find-rfc.pl","$1"]]
On /^!help *$/ [Say "? ?? !? !add !bite !brainwash !compliment !country !decide !emote !forget !help !history !i-am-idiot !ilm !insult !new !ping !plan !rfc !say !seen !tnick !time !vera"]
On /^!help +i-am-idiot *$/ [Say "No cure for that"]
On /^!help +!i-am-idiot *$/ [Say "Yes, you are."]
On /^!help +bite *$/ [Say "Hammustab definitsioonil | saba \195\164ra"]
On /^!help \W/ [Say "No help, go find a rope"]
On /^!ping( |$)/ [Say "PONG!!!"]
On /^!isitfriday( |$)/ [Exec "/usr/bin/perl" ["isitfriday.pl"]]
On /^Tuxaator_?[:,] / [RandLine "talk.txt"]
On /^!tnick +(\w+)/ [
Perm "root",
Send "NICK" ["$1"]
]
On /^!format( |$)/ [Say "Not an abacus"]
On /^\x01VERSION\x01$/ [Send "NOTICE" ["$0","\SOHVERSION HircB0t v0.0v\SOH"]]
# Each time event is either active or inactive and starts being inactive.
# If time pattern matches during tick, the time is activated
# and command executed only if previously inactive. Non-match inactivates time.
# Time /T05:55$/ "" [ExecTopic "#linux.ee" "/usr/bin/perl" ["plugins/kernel-versions.pl", "${topic #linux.ee+}"]]
Command "CONNECTED" [] [Join "#hirctest"]
Command "INVITE" [//,/^#hirctest$/] [Join "#hirctest"]
Command "366" [//,/(.*)/] [SayTo "$1" "Kurat, ma olen j\195\164lle siin..."]
Permit "root" ["*!~qwr@atsgw.cyber.ee"]
Permit "mdict" [
":dict",
":+"
]
Permit "dict" [
":root",
":@",
"mzz!mzz@uba.linux.ee"
]
NoPermit [RandLine "insult.txt"]