mIRC Home    About    Download    Register    News    Help

Print Thread
#258685 11/08/16 09:56 PM
Joined: Mar 2016
Posts: 21
P
pykolas Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Mar 2016
Posts: 21
So I want to make !hug command where people would write !hug *text* and bot goes: "$nick hugs *text*". All I need is to know how bot could reat second word and output it. Also, it should read only second word (if there is !hug this that, it should only output $nick hugs this). I believe I knew this, but forgot. Thanks in advance.

Joined: Sep 2016
Posts: 15
T
Pikka bird
Offline
Pikka bird
T
Joined: Sep 2016
Posts: 15
Code:
on *:text:!hug*:#: {
  msg # $nick hugs $2
}


example:
someone:!hug sweet stuff
bot: someone hugs sweet

Code:
on *:text:!hug*:#: {
  msg # $nick hugs $2-
}


example:
someone:!hug sweet stuff
bot: someone hugs sweet stuff


Link Copied to Clipboard