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 

.getbot script

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


Joined: 06 Jan 2006
Posts: 79

PostPosted: Tue May 09, 2006 1:53 am    Post subject: .getbot script Reply with quote

Anyone have or can make me a script so when someone types ".getbot #channel" the bot will join the channel and say "Checking for requirements". And the bot will check to see if the channel has 45 people in the channel, and if it does the bot will say "Channel met requirements". If it doesn't it will say "Channel did not meet requirements".

If that's to hard, you can make the script just PM me the number of idlers, and i can just do .join #channel if it meets requirements. (i already have a .join .part script)
Back to top
View user's profile Send private message AIM Address
R-WaT
Halfop


Joined: 06 Jan 2006
Posts: 79

PostPosted: Tue May 09, 2006 4:26 pm    Post subject: Reply with quote

Here it is in IRC scripting:

Code:
on *:text:-getbot*:#cybercast:{
  join $2
  if ($2 isin %blist) { halt }
  else {
    set %2 $2
    set %nick $nick
    timerjoin 1 1 join $2
    timermsg 1 3 idlers
    timerpart 1 7 part $2 Your app has been checked.
  }
}
alias idlers {
  msg cybercast|r-wat^ms %nick wants a bot. Channel: %2 $+ . Idlers 7(1( $+ $calc($nick(%2,0)-1) $+ 1)7)1 (My self and chanserv do not count.) 
}




here where the bot PM's the person wanting it...

Code:
on *:text:-getabot*:#cybercast: /msg $nick IF your channel is qualified, you MUST give the bot atleast 100 access. (!addpeon CyberCast|bot)
Back to top
View user's profile Send private message AIM Address
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Wed May 10, 2006 12:44 am    Post subject: Reply with quote

R-WaT:

in case you haven't noticed, this is eggdrop scripting forum, not mIRC scripting forum

and your mIRC script is an example how NOT to use timers (or rather, when you shouldn't be using timers, but event handlers)
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
sKy
Op


Joined: 14 Apr 2005
Posts: 194
Location: Germany

PostPosted: Wed May 10, 2006 3:55 pm    Post subject: Reply with quote

Offtopic:
Where is the point of creating a bot service if you can`t do such simple stuff yourself?

Ontopic:
Such kind of scripts are already ready. Search for request.
_________________
socketapi | Code less, create more.
Back to top
View user's profile Send private message
R-WaT
Halfop


Joined: 06 Jan 2006
Posts: 79

PostPosted: Wed May 10, 2006 6:21 pm    Post subject: Reply with quote

found a script similar, i'll edit to to match my likings.
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