mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2014
Posts: 15
G
Pikka bird
OP Offline
Pikka bird
G
Joined: Apr 2014
Posts: 15
I've gone through this page: On Events
I cann't figure out how to make a simple command that can only be activated by specific text and username. If anyone could help me, I'm kind of new to this confused

Joined: Mar 2014
Posts: 215
J
Fjord artisan
Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
Originally Posted By: gavintrujillo
I've gone through this page: On Events
I cann't figure out how to make a simple command that can only be activated by specific text and username. If anyone could help me, I'm kind of new to this confused

here's mine:
Code:
on *:TEXT:*just subscribed!:#:{
  if ($nick == twitchnotify ) 
{ msg $chan pantherMc Welcome $$1 to the panther army! pantherMc }
  write reglist.txt $$1
  { msg $chan $$1 has been granted /me power! }
}

putting if ($nick == myusername )
right before the command will allow only 1 person to use that command


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball
Joined: Apr 2014
Posts: 15
G
Pikka bird
OP Offline
Pikka bird
G
Joined: Apr 2014
Posts: 15
The script didn't at first, I just had to add brackets to the end of the if statement, and at the end of the script. Thanks for the help grin

Last edited by gavintrujillo; 09/04/14 02:01 AM.

Link Copied to Clipboard