mIRC Home    About    Download    Register    News    Help

Print Thread
S
Seph
Seph
S
I am using Trivbot2001 but it doesn't have a cheat command in it. I use it for fun with my friends, but others int he channels like it too. I really don't want ot use it for cheating, but I want so that when a question is asked I can put in a command that will basically call the answer.

I am really sorta new to this... so any help would be appreciated.

D
defiant
defiant
D
Right.. unfair advantage eh?

well, you'll want to create an alias with $read(<Questionsfilehere>,w,*<Question asked here>*)

This will read your file for that question and return the whole bunch; just need some toying with it.

Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
Ok here's a weird way of doing it, but when the question is sent into the channel in that event, have the bot also message you the answer which is stored in a variable somewhere (or should be...) upon the bot sending you 'the answer' your mIRC would reply to it and send $1- ($1- being the answer) to the channel.

Might be an idea to set the bot name as a higher level than one and have on 2:Text:*:?: { etc }

Just my 2 cents worth..

-Andy

Last edited by SladeKraven; 27/06/05 05:39 PM.
M
mIRCManiac
mIRCManiac
M
Actually Trivbot2001 does have a cheat command. Type
/notice <botname> cheaton to turn it on and it will
send you a NOTICE with the answer.
Type /notice <botname> cheatoff to turn it off.
You may have to be a level 500 (Master?) or something on
the bot to use it but with that enabled you could do...

on *:NOTICE:*:?:if ($nick == <triv bot nick>) msg <trivia channel> $1-

~ Edit ~
The command is available in DCC too 'cheaton & 'cheatoff

Last edited by mIRCManiac; 27/06/05 05:29 PM.
S
Seph
Seph
S
thanks for the help guys.


Link Copied to Clipboard