mIRC Home    About    Download    Register    News    Help

Print Thread
#202240 18/07/08 10:00 AM
Joined: Jul 2008
Posts: 1
B
Bratt Offline OP
Mostly harmless
OP Offline
Mostly harmless
B
Joined: Jul 2008
Posts: 1
I've had this script working before, although it has been nearly a year since I've played with the bot.

for some reason unknown to me I'm now getting " /describe: insufficient parameters" for this line:
on *:TEXT:*:#:{
if (*hug* iswm $strip($1-)) { describe $chan read(bawthug.txt) }
}


and:
"/msg: insufficient parameters (line 2, BawtWordResponses2.ini)"
messages when attempting to trigger remotes.

on *:TEXT:*:#:{
if (*cookie* iswm $strip($1-)) { msg $chan $read(bawtcookie.txt) }

}

I've checked the file name and it's fine and in the right directory.
Any help and or pointers would be greatly appreciated

Bratt #202242 18/07/08 10:38 AM
Joined: Jul 2008
Posts: 24
W
Ameglian cow
Offline
Ameglian cow
W
Joined: Jul 2008
Posts: 24
From what i can see, the first line doesn't work because you missing the identifier in front of 'read'.

Code:
if (*hug* iswm $strip($1-)) { describe $chan $read(bawthug.txt) }


It'll work if the code is as above.

The 'cookie' code works, though i'd assume the problem is due to you having two on TEXT codes in one script.

Code:
on *:TEXT:*:#:{
if (*hug* iswm $strip($1-)) { describe $chan $read(bawthug.txt) }
elseif (*cookie* iswm $strip($1-)) { msg $chan $read(bawtcookie.txt) }
else { halt
}

}

Im not sure about your *.ini error, would have to see more of the code. And i'd suggest adding a trigger to the commands, or you'll have the bot preform 'hug' and 'cookie' each time that word is mentioned in the channel.



=======================
Count WhipLash
Services Administrator
KnightNet
=======================
WhipLash #202261 18/07/08 11:27 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
The ini error isn't really an error, but identifying the script name that the actual error is in. The actual error is, as you stated, that the $ was missing from the $read identifier


Link Copied to Clipboard