egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Mrc -> TCL !!! Plis !!!!

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
ORATEGOD
Voice


Joined: 08 Jun 2020
Posts: 32

PostPosted: Mon Dec 21, 2020 11:53 pm    Post subject: Mrc -> TCL !!! Plis !!!! Reply with quote

Someone who can tell me ... if it is possible this MRC pass it to a TCL ...

I already appreciate your response ...

sorry for my bad English.


Code:
on *:text:*New*Releases*:#Chan1: {/msg #Chan2 $1-  }
Back to top
View user's profile Send private message AIM Address
ComputerTech
Master


Joined: 22 Feb 2020
Posts: 393

PostPosted: Tue Dec 22, 2020 3:05 am    Post subject: Reply with quote

Something like this Perhaps?

Code:

set catch(words) {
"*New Releases*"                 
}

set catch(message) {
"set your message here"
}

foreach word $catch(words)  {bind pubm -|- "$word" catch:word}

proc catch:word {nick uhost hand chan text} {
global catch
putserv "PRIVMSG $chan :$catch(message)"
}


Untested Cool
_________________
ComputerTech
Back to top
View user's profile Send private message Send e-mail Visit poster's website
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1032
Location: France

PostPosted: Tue Dec 22, 2020 4:52 am    Post subject: Reply with quote

$1- means the line which binds the trigger.
So the script might be:
Code:
set catch(words) {
   "*New Releases*"                 
}
set chanin "#chan1"
set chanout "#chan2"

foreach word $catch(words)  {bind pubm -|- "$chanin $word" catch:word}
proc catch:word {nick uhost hand chan text} {
   putserv "PRIVMSG $::chanout :$text"
}

_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
ORATEGOD
Voice


Joined: 08 Jun 2020
Posts: 32

PostPosted: Tue Dec 22, 2020 9:48 am    Post subject: Reply with quote

Thank you very much for your help ... you are geniuses !!
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber