Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;here is the code to copy:
- on *:text:!slots:#:{
- if (%face != 1) {
- set %face 1
- msg $chan $read(faces.txt) $read(faces.txt) $read(faces.txt)
- timer 1 20 msg $me allow
- }
- }
- on *:text:allow:?:{
- if ($nick == $me) {
- set %face 0
- }
- }
- ;here is my explanation:
- ;[on](included in every script) [*](means anyone can use):[text](check for script in messages):[!slots](name of your script):[#](means it can be done in any channel. specify a channel name for it to only work in that channel):{
- ; [if (%face != 1)](% denotes a variable name) {
- ; [set %face 1](do this to prevent this script from being called again)
- ; [msg](do this to send a message) [$chan](this is an identifier for the channel the script was posted in) [$read(faces.txt) $read(faces.txt) $read(faces.txt)]($read is an identifier for reading from a text file, in this case, you have a file called faces.txt in AppData\Roaming\mIRC that contains a list of all twitch faces. when only 1 parameter is given, mirc automatically chooses a random line)
- ; [timer 1 20](the following will execute after 20 seconds) msg [$me](this is an identifier for the bots nick, you are sending yourself a message) allow
- ; }
- ;}
- ;[](the following script executes 20 seconds after !slots is called)
- ;on *:text:allow:[?](this means the bot looks for the message in a PM):{
- ; [if ($nick == $me)](a simple check to see if the message is from you to prevent another user from bypassing the timer) {
- ; [set %face 0](this allows !slots to be called again)
- ; }
- ;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement