mIRC Home    About    Download    Register    News    Help

Print Thread
#256928 01/03/16 11:53 PM
Joined: Jan 2016
Posts: 43
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2016
Posts: 43
Hello
I have this script working well to op people who type !helpme in the main chat...But I want it to work when someone sends my bot a PM with !helpme Can this be done?
Code:
on !1:TEXT:*!helpme*:#:/mode $chan +o $nick

Techchef #256930 02/03/16 06:36 AM
Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
in an on text event you're asked to specify the location of the message. In the script you posted, the location is :#: meaning ANY CHANNELS. As per the help files, if you change that to :?: it will mean for ANY PRIVATEMESSAGES - Note that you would also have to manually specify the channel from that point on, $chan is only present in the case when the message is written in the channel.
Code:
on !1:TEXT:*!helpme*:?:/mode #channelname +o $nick


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Nillen #256940 02/03/16 05:05 PM
Joined: Jan 2016
Posts: 43
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2016
Posts: 43
Thanks


Link Copied to Clipboard