mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2014
Posts: 26
A
Ameglian cow
OP Offline
Ameglian cow
A
Joined: Dec 2014
Posts: 26
I want to add a command to my bot where people can request what to get added to it how would i make it write the hole text that they write?

on *:TEXT:@requestadd:#: { write requestadd.txt
}


So i want it like

on *:TEXT:@requestadd:#: { write requestadd.txt {Text they say}
}

Last edited by Athenlayjoshr; 11/12/14 09:24 PM.
Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Try this:

Code:
on *:TEXT:@requestadd:#: { write requestadd.txt $1- }




Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Dec 2014
Posts: 26
A
Ameglian cow
OP Offline
Ameglian cow
A
Joined: Dec 2014
Posts: 26
Nope still does not work i think it is because it only recognizes the "@requestadd" bit and it will not accept the other bit?
Btw this is for a twitch bot.


on *:TEXT:@requestadd:#: { write requestadd.txt $1-
msg $chan $nick > Added your request to the fourm!
}

That is the code ATM.

Last edited by Athenlayjoshr; 11/12/14 09:33 PM.
Joined: Jan 2004
Posts: 1,361
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,361
Code:
on *:text:@requestadd *:#:{
  write requestadd.txt $1- 
  msg $chan $nick > Added your request to the form!
}


If you're going to read this back through mIRC use the "n" switch: $read(requestadd.txt,n) to avoid possible exploits

Joined: Dec 2014
Posts: 26
A
Ameglian cow
OP Offline
Ameglian cow
A
Joined: Dec 2014
Posts: 26
Thanks you.


Link Copied to Clipboard