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 

copy.tcl

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


Joined: 14 Jan 2012
Posts: 10

PostPosted: Sat Feb 18, 2012 7:36 pm    Post subject: copy.tcl Reply with quote

anyone willing to code me script, its very simple.

Lets say i say

!copy Nick11

it will start copying what he said and re-send it to Nick11 through NOTICE

so everything he says in that chan is relayed to him through notice.
Back to top
View user's profile Send private message
Johannes13
Halfop


Joined: 10 Oct 2010
Posts: 46

PostPosted: Sun Feb 19, 2012 8:16 pm    Post subject: Reply with quote

Code:

namespace eval ::copycat {
   variable copytarget {}
   bind pub - !copy [namespace current]::copytarget
   bind pubm - * [namespace current]::copycat

   proc copytarget {n u h c a} {
      variable copytarget $a
   }

   proc copycat {n u h c a} {
      variable copytarget
      if {$n eq $copytarget} {
         putnotc $n $a
      }
   }
}
Back to top
View user's profile Send private message
PrE
Voice


Joined: 14 Jan 2012
Posts: 10

PostPosted: Mon Feb 20, 2012 3:08 pm    Post subject: Reply with quote

thanks it works only on me, like if do it on my name, so like its only limited to my name can you make it so it works with any name? other then that its perfect.
Back to top
View user's profile Send private message
Johannes13
Halfop


Joined: 10 Oct 2010
Posts: 46

PostPosted: Mon Feb 20, 2012 5:06 pm    Post subject: Reply with quote

You don't see the the copy, because the bot send it out through a NOTICE (as requested) to that user directly.
Back to top
View user's profile Send private message
PrE
Voice


Joined: 14 Jan 2012
Posts: 10

PostPosted: Mon Feb 20, 2012 5:20 pm    Post subject: Reply with quote

oh yes it works, it was just because my nick-tab complete was adding a space at the end of the name, but is it possible to add stop copying?
Back to top
View user's profile Send private message
Johannes13
Halfop


Joined: 10 Oct 2010
Posts: 46

PostPosted: Mon Feb 20, 2012 6:30 pm    Post subject: Reply with quote

Just do !copy and it will stop Razz
Back to top
View user's profile Send private message
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