Scripting Events » History » Version 25
Per Amundsen, 10/27/2015 09:10 PM
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 | 2 | Per Amundsen | <pre> |
31 | 1 | Per Amundsen | raw <numeric>:<matchtext>:<commands> |
32 | |||
33 | ctcp <level>:<matchtext>:<*|#|?>:<commands> |
||
34 | |||
35 | 4 | Per Amundsen | on <level>:SOCKOPEN:name:commands |
36 | 1 | Per Amundsen | |
37 | 4 | Per Amundsen | on <level>:SOCKREAD:name:commands |
38 | 1 | Per Amundsen | |
39 | 4 | Per Amundsen | on <level>:SOCKLISTEN:name:commands |
40 | 1 | Per Amundsen | |
41 | 4 | Per Amundsen | on <level>:SOCKCLOSE:name:commands |
42 | 1 | Per Amundsen | |
43 | 4 | Per Amundsen | on <level>:SIGNAL:name:command |
44 | 1 | Per Amundsen | |
45 | on <level>:LOGON:*:<commands> |
||
46 | |||
47 | on <level>:DNS:<commands> |
||
48 | |||
49 | on <level>:CTCPREPLY:<matchtext>:<commands> |
||
50 | |||
51 | on <level>:OPEN|CLOSE:<?|@|=|!|*>:<matchtext>:<commands> |
||
52 | |||
53 | 5 | Per Amundsen | on <level>:APPACTIVE:<commands> |
54 | |||
55 | 1 | Per Amundsen | on <level>:ACTIVE:<*#?=!@>:<commands> |
56 | |||
57 | on <level>:HOTLINK:<matchtext>:<*#?=!@>:<commands> |
||
58 | |||
59 | on <level>:INVITE:<#[,#]>:<commands> |
||
60 | |||
61 | on <level>:TABCOMP:<*#?=!@>:<commands> |
||
62 | |||
63 | on <level>:WALLOPS:<matchtext>:<commands> |
||
64 | |||
65 | on <level>:ERROR:<matchtext>:<commands> |
||
66 | |||
67 | on <level>:RAWMODE:#:<commands> |
||
68 | |||
69 | on <level>:DEHELP:<#[,#]>:<commands> |
||
70 | |||
71 | on <level>:HELP:<#[,#]>:<commands> |
||
72 | |||
73 | on <level>:DEVOICE:<#[,#]>:<commands> |
||
74 | |||
75 | on <level>:VOICE:<#[,#]>:<commands> |
||
76 | |||
77 | on <level>:DEOP:<#[,#]>:<commands> |
||
78 | |||
79 | on <level>:OP:<#[,#]>:<commands> |
||
80 | |||
81 | on <level>:INPUT:<*#?=!@>:<commands> |
||
82 | |||
83 | on <level>:UNBAN:<#[,#]>:<commands> |
||
84 | |||
85 | on <level>:BAN:<#[,#]>:<commands> |
||
86 | |||
87 | on <level>:CHAT:<matchtext>:<commands> |
||
88 | |||
89 | on <level>:KICK:<#[,#]>:<commands> |
||
90 | |||
91 | on <level>:NOTIFY:<commands> |
||
92 | |||
93 | on <level>:UNNOTIFY:<commands> |
||
94 | |||
95 | on <level>:NICK:<commands> |
||
96 | |||
97 | on <level>:QUIT:<commands> |
||
98 | |||
99 | on <level>:LOAD:<commands> |
||
100 | |||
101 | on <level>:UNLOAD:<commands>' |
||
102 | |||
103 | on <level>:START:<commands> |
||
104 | |||
105 | on <level>:EXIT:<commands> |
||
106 | |||
107 | on <level>:DNS:<commands> |
||
108 | |||
109 | on <level>:CONNECTFAIL:<commands> |
||
110 | |||
111 | on <level>:CONNECT:<commands> |
||
112 | |||
113 | on <level>:DISCONNECT:<commands> |
||
114 | |||
115 | on <level>:TOPIC:<#[,#]>:<commands> |
||
116 | |||
117 | on <level>:USERMODE:<commands> |
||
118 | |||
119 | on <level>:MODE:<#[,#]>:<commands> |
||
120 | |||
121 | on <level>:PART:<#[,#]>:<commands> |
||
122 | |||
123 | on <level>:JOIN:<#[,#]>:<commands> |
||
124 | |||
125 | on <level>:SNOTICE:<matchtext>:<commands> |
||
126 | |||
127 | on <level>:NOTICE:<matchtext>:<*><?><#[,#]>:<commands> |
||
128 | |||
129 | on <level>:ACTION:<matchtext>:<*><?><#[,#]>:<commands> |
||
130 | |||
131 | on <level>:TEXT:<matchtext>:<*><?><#[,#]>:<commands> |
||
132 | 3 | Per Amundsen | |
133 | 16 | Per Amundsen | on <level>:MP3END:<commands> |
134 | |||
135 | 19 | Per Amundsen | on <level>:PARSELINE:<in|out|*>:matchtext:<commands> |
136 | |||
137 | 24 | Per Amundsen | on <level>:PING:<commands> |
138 | |||
139 | on <level>:PONG:<commands> |
||
140 | |||
141 | 25 | Per Amundsen | on <level>:FILESENT:<filename[,filename]>:<commands> |
142 | |||
143 | on <level>:FILERCVD:<filename[,filename]>:<commands> |
||
144 | |||
145 | on <level>:SENDFAIL:<filename[,filename]>:<commands> |
||
146 | |||
147 | on <level>:GETFAIL:<filename[,filename]>:<commands> |
||
148 | |||
149 | 21 | Per Amundsen | Triggers when the chosen media player changes song. |
150 | 3 | Per Amundsen | on <level>:SONG:<commands> |
151 | 7 | Per Amundsen | |
152 | 10 | Per Amundsen | Triggers whenever the config file is reloaded |
153 | 1 | Per Amundsen | on <level>:OPTIONS:<commands> |
154 | 10 | Per Amundsen | |
155 | Triggers whenever the client sends a client text to any window, $1- will hold the original client text, haltable. |
||
156 | on <level>:CLIENTTEXT:<matchtext>:<*#?=!@>:<commands> |
||
157 | 3 | Per Amundsen | </pre> |