Project

General

Profile

Scripting Events » History » Version 27

Per Amundsen, 11/13/2015 05:29 AM

1 17 Per Amundsen
{{>toc}}
2
3 13 Per Amundsen
h1. Scripting Event Options
4 1 Per Amundsen
5 8 Per Amundsen
Supported <level> prefixes:
6
7 11 Per Amundsen
& - Ignore the event if another event has already halted the text.
8 8 Per Amundsen
^ - Enable halt events (hide default text output from the event)
9
! - Ignore events made by you
10
@ - Only trigger if you have channel op
11
$ - Indicate the wildcard text is a regular expression.
12
me: - Ignore events not made by you.
13 18 Per Amundsen
[+]<level> - Level to match.
14 1 Per Amundsen
15 13 Per Amundsen
h1. Scripting Event Evaluation
16 14 Per Amundsen
17
Matchtext and Target Window can be evaluated using $(code) or contain a single %variable.
18 12 Per Amundsen
19
*Example*
20
<pre>
21 23 Per Amundsen
; Set a target variable.
22 12 Per Amundsen
set %target #channel
23 1 Per Amundsen
24 23 Per Amundsen
; Subscribe to the TEXT event, try evaluate my nick, and if it matches, print a text.
25 13 Per Amundsen
on *:TEXT:$(* $+ $me $+ *)):%target:echo -ag My nick was highlighted on %target
26 1 Per Amundsen
</pre>
27 12 Per Amundsen
28 13 Per Amundsen
h1. Scripting Events
29 15 Per Amundsen
30 27 Per Amundsen
|^. [[RAW]]
31
[[CTCP]]
32
on [[ACTION]]
33
on [[ACTIVE]]
34
on [[APPACTIVE]]
35
on [[BAN]]
36
on [[CHAT]]
37
on [[CLIENTTEXT]]
38
on [[CONNECT]]
39
on [[CONNECTFAIL]]
40
on [[CTCPREPLY]]
41
on [[DEHELP]]
42
on [[DEOP]]
43
on [[DEVOICE]]
44
on [[DISCONNECT]]
45
on [[DNS]]
46
 |^. on [[DNS]]
47
on [[ERROR]]
48
on [[EXIT]]
49
on [[FILERCVD]]
50
on [[FILESENT]]
51
on [[GETFAIL]]
52
on [[HELP]]
53
on [[HOTLINK]]
54
on [[INPUT]]
55
on [[INVITE]]
56
on [[JOIN]]
57
on [[KICK]]
58
on [[LOAD]]
59
on [[LOGON]]
60
on [[MODE]]
61
on [[MP3END]]
62
 |^. on [[NICK]]
63
on [[NOTICE]]
64
on [[NOTIFY]]
65
on [[OP]]
66
on [[OPEN|CLOSE]]
67
on [[OPTIONS]]
68
on [[PARSELINE]]
69
on [[PART]]
70
on [[PING]]
71
on [[PONG]]
72
on [[QUIT]]
73
on [[RAWMODE]]
74
on [[RESUME]]
75
on [[SENDFAIL]]
76
on [[SIGNAL]]
77
on [[SNOTICE]]
78
 |^. on [[SOCKCLOSE]]
79
on [[SOCKLISTEN]]
80
on [[SOCKOPEN]]
81
on [[SOCKREAD]]
82
on [[SONG]]
83
on [[START]]
84
on [[SUSPEND]]
85
on [[TABCOMP]]
86
on [[TEXT]]
87
on [[TOPIC]]
88
on [[UNBAN]]
89
on [[UNLOAD]]
90
on [[UNNOTIFY]]
91
on [[USERMODE]]
92
on [[VOICE]]
93
on [[WALLOPS]]
94
 |
95
96 2 Per Amundsen
<pre>
97 1 Per Amundsen
raw <numeric>:<matchtext>:<commands>
98
99
ctcp <level>:<matchtext>:<*|#|?>:<commands>
100
101 4 Per Amundsen
on <level>:SOCKOPEN:name:commands
102 1 Per Amundsen
103 4 Per Amundsen
on <level>:SOCKREAD:name:commands
104 1 Per Amundsen
105 4 Per Amundsen
on <level>:SOCKLISTEN:name:commands
106 1 Per Amundsen
107 4 Per Amundsen
on <level>:SOCKCLOSE:name:commands
108 1 Per Amundsen
109 4 Per Amundsen
on <level>:SIGNAL:name:command
110 1 Per Amundsen
111
on <level>:LOGON:*:<commands>
112
113
on <level>:DNS:<commands>
114
115
on <level>:CTCPREPLY:<matchtext>:<commands>
116
117
on <level>:OPEN|CLOSE:<?|@|=|!|*>:<matchtext>:<commands>
118
119 5 Per Amundsen
on <level>:APPACTIVE:<commands>
120
121 1 Per Amundsen
on <level>:ACTIVE:<*#?=!@>:<commands>
122
123
on <level>:HOTLINK:<matchtext>:<*#?=!@>:<commands>
124
125
on <level>:INVITE:<#[,#]>:<commands>
126
127
on <level>:TABCOMP:<*#?=!@>:<commands>
128
129
on <level>:WALLOPS:<matchtext>:<commands>
130
131
on <level>:ERROR:<matchtext>:<commands>
132
133
on <level>:RAWMODE:#:<commands>
134
135
on <level>:DEHELP:<#[,#]>:<commands>
136
137
on <level>:HELP:<#[,#]>:<commands>
138
139
on <level>:DEVOICE:<#[,#]>:<commands>
140
141
on <level>:VOICE:<#[,#]>:<commands>
142
143
on <level>:DEOP:<#[,#]>:<commands>
144
145
on <level>:OP:<#[,#]>:<commands>
146
147
on <level>:INPUT:<*#?=!@>:<commands>
148
149
on <level>:UNBAN:<#[,#]>:<commands>
150
151
on <level>:BAN:<#[,#]>:<commands>
152
153
on <level>:CHAT:<matchtext>:<commands>
154
155
on <level>:KICK:<#[,#]>:<commands>
156
157
on <level>:NOTIFY:<commands>
158
159
on <level>:UNNOTIFY:<commands>
160
161
on <level>:NICK:<commands>
162
163
on <level>:QUIT:<commands>
164
165
on <level>:LOAD:<commands>
166
167
on <level>:UNLOAD:<commands>'
168
169
on <level>:START:<commands>
170
171
on <level>:EXIT:<commands>
172
173
on <level>:DNS:<commands>
174
175
on <level>:CONNECTFAIL:<commands>
176
177
on <level>:CONNECT:<commands>
178
179
on <level>:DISCONNECT:<commands>
180
181
on <level>:TOPIC:<#[,#]>:<commands>
182
183
on <level>:USERMODE:<commands>
184
185
on <level>:MODE:<#[,#]>:<commands>
186
187
on <level>:PART:<#[,#]>:<commands>
188
189
on <level>:JOIN:<#[,#]>:<commands>
190
191
on <level>:SNOTICE:<matchtext>:<commands>
192
193
on <level>:NOTICE:<matchtext>:<*><?><#[,#]>:<commands>
194
195
on <level>:ACTION:<matchtext>:<*><?><#[,#]>:<commands>
196
197
on <level>:TEXT:<matchtext>:<*><?><#[,#]>:<commands>
198 3 Per Amundsen
199 16 Per Amundsen
on <level>:MP3END:<commands>
200
201 19 Per Amundsen
on <level>:PARSELINE:<in|out|*>:matchtext:<commands>
202
203 24 Per Amundsen
on <level>:PING:<commands>
204
205
on <level>:PONG:<commands>
206
207 25 Per Amundsen
on <level>:FILESENT:<filename[,filename]>:<commands>
208
209
on <level>:FILERCVD:<filename[,filename]>:<commands>
210
211
on <level>:SENDFAIL:<filename[,filename]>:<commands>
212
213
on <level>:GETFAIL:<filename[,filename]>:<commands>
214
215 26 Per Amundsen
Triggers when the computer is about to suspend.
216
on <level>:SUSPEND:<commands>
217
218
Triggers when the computer resumes from suspend.
219
on <level>:RESUME:<commands>
220
221 21 Per Amundsen
Triggers when the chosen media player changes song.
222 3 Per Amundsen
on <level>:SONG:<commands>
223 7 Per Amundsen
224 10 Per Amundsen
Triggers whenever the config file is reloaded
225 1 Per Amundsen
on <level>:OPTIONS:<commands>
226 10 Per Amundsen
227
Triggers whenever the client sends a client text to any window, $1- will hold the original client text, haltable.
228
on <level>:CLIENTTEXT:<matchtext>:<*#?=!@>:<commands>
229 3 Per Amundsen
</pre>