Project

General

Profile

Scripting Events » History » Version 28

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