mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2014
Posts: 9
C
Codica Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: May 2014
Posts: 9
I have a bot that tracks how many times a user said something. A lot of people want their own tracker, and I'm not always at my computer.

Is there a way to add script to a part in my remote.ini?
I don't want it to end up all the way at the end, as I have some ON *:TEXT:*:#:{ there, blocking all other text-based triggers there.

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
Create a new file to be able to have multiple events that uses the same trigger.

File > New


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: May 2014
Posts: 9
C
Codica Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: May 2014
Posts: 9
That explains how to get around the ON *:TEST:*:#:{ problem.

Now how do I add script to this .ini using a command? With mIRC using the "n51=<code here>" and all.

Joined: Jan 2004
Posts: 1,359
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,359
In general, you should not be. There's probably another way to accomplish what you're doing.

Joined: May 2014
Posts: 9
C
Codica Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: May 2014
Posts: 9
Basically I have this piece of code:

Code:
on *:TEXT:*[text]*:#:{
  if ($nick == [person]) {
    var %[person]current $wildtok($1-,*[text]*,0,32)
    inc %[person] %[person]current
  }
}

on *:text:![person]:#:{ 
  if ($chan == #teamdoge) { HALT }
  if ($($+(%,flood.,$nick),2)) { notice $nick Please do not spam the bot. | return }
  set -u10 %flood. $+ $nick On
  msg $chan [person] has said [text] %[person] times.
}


I basically want a way to add this piece of code every time i type a command. How do I do this without adding code to the .ini?


Link Copied to Clipboard