Project

General

Profile

Scripting Events » History » Version 30

Per Amundsen, 11/13/2015 05:45 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 28 Per Amundsen
|^. [[on RAW]]
31
[[on CTCP]]
32 29 Per Amundsen
[[on ACTION]]
33
[[on ACTIVE]]
34
[[on APPACTIVE]]
35
[[on BAN]]
36
[[on CHAT]]
37
[[on CLIENTTEXT]]
38 30 Per Amundsen
[[on CLOSE]]
39 29 Per Amundsen
[[on CONNECT]]
40
[[on CONNECTFAIL]]
41
[[on CTCPREPLY]]
42
[[on DEHELP]]
43
[[on DEOP]]
44
[[on DEVOICE]]
45 30 Per Amundsen
 |^. [[on DIALOG]]
46 29 Per Amundsen
[[on DISCONNECT]]
47 1 Per Amundsen
[[on DNS]]
48 30 Per Amundsen
[[on DNS]]
49
[[on ERROR]]
50 29 Per Amundsen
[[on EXIT]]
51
[[on FILERCVD]]
52
[[on FILESENT]]
53
[[on GETFAIL]]
54
[[on HELP]]
55
[[on HOTLINK]]
56
[[on INPUT]]
57
[[on INVITE]]
58 1 Per Amundsen
[[on JOIN]]
59 30 Per Amundsen
[[on KEYDOWN]]
60
  |^. [[on KEYUP]]
61 29 Per Amundsen
[[on KICK]]
62
[[on LOAD]]
63
[[on LOGON]]
64
[[on MODE]]
65 1 Per Amundsen
[[on MP3END]]
66 29 Per Amundsen
[[on NICK]]
67 30 Per Amundsen
[[on NOTICE]]
68 29 Per Amundsen
[[on NOTIFY]]
69
[[on OP]]
70 30 Per Amundsen
[[on OPEN]]
71 1 Per Amundsen
[[on OPTIONS]]
72 29 Per Amundsen
[[on PARSELINE]]
73
[[on PART]]
74
[[on PING]]
75 30 Per Amundsen
 |^.  [[on PONG]]
76 1 Per Amundsen
[[on QUIT]]
77 29 Per Amundsen
[[on RAWMODE]]
78
[[on RESUME]]
79 1 Per Amundsen
[[on SENDFAIL]]
80 30 Per Amundsen
[[on SERVERMODE]]
81 29 Per Amundsen
[[on SIGNAL]]
82
[[on SNOTICE]]
83
[[on SOCKCLOSE]]
84 30 Per Amundsen
[[on SOCKLISTEN]]
85 29 Per Amundsen
[[on SOCKOPEN]]
86
[[on SOCKREAD]]
87
[[on SONG]]
88
[[on START]]
89
[[on SUSPEND]]
90 30 Per Amundsen
 |^.  [[on TABCOMP]]
91 29 Per Amundsen
[[on TEXT]]
92
[[on TOPIC]]
93 1 Per Amundsen
[[on UNBAN]]
94 29 Per Amundsen
[[on UNLOAD]]
95
[[on UNNOTIFY]]
96 30 Per Amundsen
[[on UNOTIFY]]
97 29 Per Amundsen
[[on USERMODE]]
98
[[on VOICE]]
99 30 Per Amundsen
[[on WALLOPS]]
100 29 Per Amundsen
[[on WALLOPS]]
101 27 Per Amundsen
 |
102
103 2 Per Amundsen
<pre>
104 1 Per Amundsen
raw <numeric>:<matchtext>:<commands>
105
106
ctcp <level>:<matchtext>:<*|#|?>:<commands>
107
108 4 Per Amundsen
on <level>:SOCKOPEN:name:commands
109 1 Per Amundsen
110 4 Per Amundsen
on <level>:SOCKREAD:name:commands
111 1 Per Amundsen
112 4 Per Amundsen
on <level>:SOCKLISTEN:name:commands
113 1 Per Amundsen
114 4 Per Amundsen
on <level>:SOCKCLOSE:name:commands
115 1 Per Amundsen
116 4 Per Amundsen
on <level>:SIGNAL:name:command
117 1 Per Amundsen
118
on <level>:LOGON:*:<commands>
119
120
on <level>:DNS:<commands>
121
122
on <level>:CTCPREPLY:<matchtext>:<commands>
123
124
on <level>:OPEN|CLOSE:<?|@|=|!|*>:<matchtext>:<commands>
125
126 5 Per Amundsen
on <level>:APPACTIVE:<commands>
127
128 1 Per Amundsen
on <level>:ACTIVE:<*#?=!@>:<commands>
129
130
on <level>:HOTLINK:<matchtext>:<*#?=!@>:<commands>
131
132
on <level>:INVITE:<#[,#]>:<commands>
133
134
on <level>:TABCOMP:<*#?=!@>:<commands>
135
136
on <level>:WALLOPS:<matchtext>:<commands>
137
138
on <level>:ERROR:<matchtext>:<commands>
139
140
on <level>:RAWMODE:#:<commands>
141
142
on <level>:DEHELP:<#[,#]>:<commands>
143
144
on <level>:HELP:<#[,#]>:<commands>
145
146
on <level>:DEVOICE:<#[,#]>:<commands>
147
148
on <level>:VOICE:<#[,#]>:<commands>
149
150
on <level>:DEOP:<#[,#]>:<commands>
151
152
on <level>:OP:<#[,#]>:<commands>
153
154
on <level>:INPUT:<*#?=!@>:<commands>
155
156
on <level>:UNBAN:<#[,#]>:<commands>
157
158
on <level>:BAN:<#[,#]>:<commands>
159
160
on <level>:CHAT:<matchtext>:<commands>
161
162
on <level>:KICK:<#[,#]>:<commands>
163
164
on <level>:NOTIFY:<commands>
165
166
on <level>:UNNOTIFY:<commands>
167
168
on <level>:NICK:<commands>
169
170
on <level>:QUIT:<commands>
171
172
on <level>:LOAD:<commands>
173
174
on <level>:UNLOAD:<commands>'
175
176
on <level>:START:<commands>
177
178
on <level>:EXIT:<commands>
179
180
on <level>:DNS:<commands>
181
182
on <level>:CONNECTFAIL:<commands>
183
184
on <level>:CONNECT:<commands>
185
186
on <level>:DISCONNECT:<commands>
187
188
on <level>:TOPIC:<#[,#]>:<commands>
189
190
on <level>:USERMODE:<commands>
191
192
on <level>:MODE:<#[,#]>:<commands>
193
194
on <level>:PART:<#[,#]>:<commands>
195
196
on <level>:JOIN:<#[,#]>:<commands>
197
198
on <level>:SNOTICE:<matchtext>:<commands>
199
200
on <level>:NOTICE:<matchtext>:<*><?><#[,#]>:<commands>
201
202
on <level>:ACTION:<matchtext>:<*><?><#[,#]>:<commands>
203
204
on <level>:TEXT:<matchtext>:<*><?><#[,#]>:<commands>
205 3 Per Amundsen
206 16 Per Amundsen
on <level>:MP3END:<commands>
207
208 19 Per Amundsen
on <level>:PARSELINE:<in|out|*>:matchtext:<commands>
209
210 24 Per Amundsen
on <level>:PING:<commands>
211
212
on <level>:PONG:<commands>
213
214 25 Per Amundsen
on <level>:FILESENT:<filename[,filename]>:<commands>
215
216
on <level>:FILERCVD:<filename[,filename]>:<commands>
217
218
on <level>:SENDFAIL:<filename[,filename]>:<commands>
219
220
on <level>:GETFAIL:<filename[,filename]>:<commands>
221
222 26 Per Amundsen
Triggers when the computer is about to suspend.
223
on <level>:SUSPEND:<commands>
224
225
Triggers when the computer resumes from suspend.
226
on <level>:RESUME:<commands>
227
228 21 Per Amundsen
Triggers when the chosen media player changes song.
229 3 Per Amundsen
on <level>:SONG:<commands>
230 7 Per Amundsen
231 10 Per Amundsen
Triggers whenever the config file is reloaded
232 1 Per Amundsen
on <level>:OPTIONS:<commands>
233 10 Per Amundsen
234
Triggers whenever the client sends a client text to any window, $1- will hold the original client text, haltable.
235
on <level>:CLIENTTEXT:<matchtext>:<*#?=!@>:<commands>
236 3 Per Amundsen
</pre>