Scripting Events » History » Version 29
Per Amundsen, 11/13/2015 05:34 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 | [[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 ERROR]] |
||
47 | [[on EXIT]] |
||
48 | [[on FILERCVD]] |
||
49 | [[on FILESENT]] |
||
50 | [[on GETFAIL]] |
||
51 | [[on HELP]] |
||
52 | [[on HOTLINK]] |
||
53 | [[on INPUT]] |
||
54 | [[on INVITE]] |
||
55 | [[on JOIN]] |
||
56 | [[on KICK]] |
||
57 | [[on LOAD]] |
||
58 | [[on LOGON]] |
||
59 | [[on MODE]] |
||
60 | [[on MP3END]] |
||
61 | [[on NICK]] |
||
62 | |^. [[on NOTICE]] |
||
63 | [[on NOTIFY]] |
||
64 | [[on OP]] |
||
65 | [[on OPEN|CLOSE]] |
||
66 | [[on OPTIONS]] |
||
67 | [[on PARSELINE]] |
||
68 | [[on PART]] |
||
69 | [[on PING]] |
||
70 | [[on PONG]] |
||
71 | [[on QUIT]] |
||
72 | [[on RAWMODE]] |
||
73 | [[on RESUME]] |
||
74 | [[on SENDFAIL]] |
||
75 | [[on SIGNAL]] |
||
76 | [[on SNOTICE]] |
||
77 | [[on SOCKCLOSE]] |
||
78 | |^. [[on SOCKLISTEN]] |
||
79 | [[on SOCKOPEN]] |
||
80 | [[on SOCKREAD]] |
||
81 | [[on SONG]] |
||
82 | [[on START]] |
||
83 | [[on SUSPEND]] |
||
84 | [[on TABCOMP]] |
||
85 | [[on TEXT]] |
||
86 | [[on TOPIC]] |
||
87 | [[on UNBAN]] |
||
88 | [[on UNLOAD]] |
||
89 | [[on UNNOTIFY]] |
||
90 | [[on USERMODE]] |
||
91 | [[on VOICE]] |
||
92 | [[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> |