This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Couple more things

Old posts that have not been replied to for several years.
Locked
L
LiquidZoo
Voice
Posts: 12
Joined: Thu Nov 11, 2004 12:59 am

Couple more things

Post by LiquidZoo »

Ok, had some updates for my scripts; and there are a couple of things I can't figure out.

First off, I would like to have a command that only responds to a /msg to the bot that will voice users in the channel when they respond with a single * and remember those usernames to remove the voice on another command. I couldn't find a script that would do this. The bot will be opped.

Also, how would I go about echoing out the contents of a file on !trigger? I have a script that will do it, but the message is saved there and I would like others to be able to change the contents of this file with an mirc script. The bot runs on Linux, but mirc will be used to connect to the channels and for the updater script.
L
LiquidZoo
Voice
Posts: 12
Joined: Thu Nov 11, 2004 12:59 am

Post by LiquidZoo »

Update to the second question, since it may not be clear:

I want !trigger to notice the user with the contents of a file something like this:

Code: Select all

set message_msg {
 {
     This is where it will call the file
}
}
I already have the part where it will NOTICE the user with a message that's already there, but how do I call a file from there?

Also, as a second part, how do I make it so that /msg $botnick newtrigger <new text> will open the same file from above and overwrite the text that is there with <new text>
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

For the /msg botnick command, you need the MSG bind.

Code: Select all

bind msg - "*" your:proc
You can also use the MSGM bind, but you have to match the trigger. To dectect the trigger on bind msgm:

Code: Select all

if {[string equal -nocase "!trigger" [lindex $text 0]]} {
Replace !trigger by the trigger you want.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

you need to read Basic File Operations
Locked