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.

flooding in private killed my bot every time

Old posts that have not been replied to for several years.
Locked
B
Bader
Voice
Posts: 35
Joined: Sat Mar 12, 2005 5:34 am

flooding in private killed my bot every time

Post by Bader »

Hey guys, i need Script assistance that anyone send notice privately to the bot, the bot closes the private mode for half an 10mins,
then open it again,
example: /mode $me +R
then after half an hour OR just 10 minutes the mode opens /mode $me -R
-
thanks
-
B
Bader
Voice
Posts: 35
Joined: Sat Mar 12, 2005 5:34 am

flooding in private killed my bot every time

Post by Bader »

----
tried but i dont think it would work out all the time
---

Code: Select all

proc proc_away {nick uhost hand text} {
set chana [lindex $text 0]
set who [lindex $text 1]
putserv "away :^C2I'm an eggdrop bot.. don't bother messaging me..^O"
putserv "mode botnickhere +R"
putlog "-=\002$nick\002=- away and mode +R done" }
bind msg o|o away proc_away

User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

Nice one for having a go yourself. Try this.

Code: Select all

bind msg - * proc_away

proc proc_away {nick uhost hand arg} {
    putserv "away :Don't bother messaging me.."
    putserv "mode $::botnick +R"
    putlog "set away and mode +R done" 
    timer 10 {putserv "mode $::botnick -R"}
}
Not tested.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
B
Bader
Voice
Posts: 35
Joined: Sat Mar 12, 2005 5:34 am

Post by Bader »

^DooM^ wrote:Nice one for having a go yourself. Try this.

Code: Select all

bind msg - * proc_away

proc proc_away {nick uhost hand arg} {
    putserv "away :Don't bother messaging me.."
    putserv "mode $::botnick +R"
    putlog "set away and mode +R done" 
    timer 10 {putserv "mode $::botnick -R"}
}
Not tested.
this working good but if i wonna when anyone msg the bot in private the bot close mode like /mode $me +R. cuz its every time sending flooding private for my bot,
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

The way that script works should set mode +R whenever anyone mesages the bot be it just saying hello or flood. Then after 10 minutes it will remove the +R mode although I did think at the time that it seemd strange that you wanted the +R removed when it will just readd the +R when anyone messaged the bot anyway. If you dont need anyone to message the bot at any time I would just suggest that you get rid of the timer that removes the mode +R and just leave it on permanently.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
B
Bader
Voice
Posts: 35
Joined: Sat Mar 12, 2005 5:34 am

Post by Bader »

i test it , its not working :(
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

Ok lets try this a different way. In your config file find this

Code: Select all

# This is a Tcl script to be run immediately after connecting to a server.
bind evnt - init-server evnt:init_server

proc evnt:init_server {type} {
  global botnick
  putquick "MODE $botnick +i-ws"
}
Change this line

Code: Select all

putquick "MODE $botnick +i-ws"
to this

Code: Select all

putquick "MODE $botnick +Ri-ws"
This should set the mode +R to your bot as soon as it joins the server and will stay on unless you manually remove it from your eggdrop. Also remove the TCL script from earlier and restart your eggdrop. 8)

Note: Setting this will make your eggdrop deaf to message commands that you may wish to use in the future.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

If your on Quakenet +R means Registered users only. This means, any authed person can still keep messaging, unauthed however cannot.

So if the flooder is authed, it will still work, just set up an ignore instead?
Locked