| View previous topic :: View next topic |
| Author |
Message |
R-WaT Halfop
Joined: 06 Jan 2006 Posts: 79
|
Posted: Tue May 09, 2006 1:53 am Post subject: .getbot script |
|
|
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 |
|
 |
R-WaT Halfop
Joined: 06 Jan 2006 Posts: 79
|
Posted: Tue May 09, 2006 4:26 pm Post subject: |
|
|
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 |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Wed May 10, 2006 12:44 am Post subject: |
|
|
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 |
|
 |
sKy Op

Joined: 14 Apr 2005 Posts: 194 Location: Germany
|
Posted: Wed May 10, 2006 3:55 pm Post subject: |
|
|
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 |
|
 |
R-WaT Halfop
Joined: 06 Jan 2006 Posts: 79
|
Posted: Wed May 10, 2006 6:21 pm Post subject: |
|
|
| found a script similar, i'll edit to to match my likings. |
|
| Back to top |
|
 |
|