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 

Dalnet Bot Service 2.0
Goto page Previous  1, 2
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
m4s
Voice


Joined: 30 Jan 2017
Posts: 24

PostPosted: Sat Jun 17, 2017 4:55 pm    Post subject: Reply with quote

Ok I have found the solution.

The 141st line must be modified from this:
global botnick optimer
to this.
global botnick optimer chanserv

Line 115 must be restored to:
global botnick chancheck nickopauth opcheck optimer

Thank you to everyone! Smile
Back to top
View user's profile Send private message
m4s
Voice


Joined: 30 Jan 2017
Posts: 24

PostPosted: Mon Jun 19, 2017 1:30 pm    Post subject: Reply with quote

Hello again Neutral

The script works but today a checked my log files and realized that the script
authorizes to nickserv very often and checks the @ status also as often.

My log file shows this:
https://paste.ubuntu.com/24900683/

Is this normal?

Thank you for the answers! Smile
Back to top
View user's profile Send private message
simo
Master


Joined: 22 Mar 2015
Posts: 204

PostPosted: Tue Jun 20, 2017 8:17 am    Post subject: Reply with quote

you could use the code i posted wich is smaller and does everything u asked for auto identify on connect and when joining channel it sets OP

Give this a try:

Code:
bind evnt - init-server evnt:init_server

proc evnt:init_server {type} {
  global botnick
  putquick "MODE $botnick +RSi"
  putquick "PRIVMSG NickServ@services.dal.net :identify password"
}


bind notc - "*This nick is owned by someone else*" autoident
bind notc - "*Password accepted for*" compautoident
proc autoident {nick uhost hand text dest} {
  putserv "PRIVMSG NickServ@services.dal.net :identify password"
}
proc compautoident {nick uhost hand text dest} {
  putserv "PRIVMSG #yourchannel :\002Identification\002 has been successful.."
  putlog "\002Identification\002 has been successful.."
}


bind pub o|o !opup opup_pub
proc opup_pub { nick uhost hand chan arg } {
 global botnick nickserv chanserv identcmd identpass
 putlog "$nick requested in $chan to op up..."
 putserv "PRIVMSG $chan :\002OP-Up for $chan (Requested by $nick)\002"
 putlog "Requesting ops for $chan..."
putserv "PRIVMSG NickServ@services.dal.net :identify password"
 if {![botisop $chan]} {putserv "PRIVMSG ChanServ@services.dal.net :op $chan $botnick"}
}




bind join - * mejoin
proc mejoin {nick uhost hand chan} {
  if {$chan == "#yourchannel"} {
 if {[isbotnick $nick] && ![botisop $chan]} {putserv "PRIVMSG ChanServ@services.dal.net :op $chan"}
 }
}
Back to top
View user's profile Send private message
simo
Master


Joined: 22 Mar 2015
Posts: 204

PostPosted: Tue Jun 20, 2017 11:34 am    Post subject: Reply with quote

also from the looks of it, it seems the timers are responsible for the repeated identifying
Back to top
View user's profile Send private message
m4s
Voice


Joined: 30 Jan 2017
Posts: 24

PostPosted: Tue Jun 20, 2017 12:54 pm    Post subject: Reply with quote

simo wrote:
also from the looks of it, it seems the timers are responsible for the repeated identifying


Thank you simo your script I saved it and I appreciate your work. Smile
But it would be great if we could solve the original problem.

So the timer should responsible only for @ checking...
Back to top
View user's profile Send private message
m4s
Voice


Joined: 30 Jan 2017
Posts: 24

PostPosted: Wed Jun 21, 2017 12:58 pm    Post subject: Reply with quote

m4s wrote:
Hello again Neutral

The script works but today a checked my log files and realized that the script
authorizes to nickserv very often and checks the @ status also as often.

My log file shows this:
https://paste.ubuntu.com/24900683/

Is this normal?

Thank you for the answers! Smile


The solution is so simple. I had to restart the bot and script works!
Thanks to everyone!
Back to top
View user's profile Send private message
Arnold_X-P
Op


Joined: 30 Oct 2006
Posts: 140
Location: DALnet - Trinidad - Beni - Bolivia

PostPosted: Wed Jun 21, 2017 3:45 pm    Post subject: Reply with quote

Friend use eggdrop version 1.6.20
Do not use 1.8.1 is full of errors in timers

The problem will continue the same happens to me in my tcl of trivia
I get the same error using eggdrop 1.8.1
I recommend that you install eggdrop 1.6.21 that is a very stable version
_________________
Very Happy thanks to that they help, that others learn Very Happy
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Arnold_X-P
Op


Joined: 30 Oct 2006
Posts: 140
Location: DALnet - Trinidad - Beni - Bolivia

PostPosted: Wed Jun 21, 2017 3:46 pm    Post subject: Reply with quote

Restarting the eggdrop will not solve the problem
The problem will come back later

See the problems with the version 1.8.1 view forum
_________________
Very Happy thanks to that they help, that others learn Very Happy
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
m4s
Voice


Joined: 30 Jan 2017
Posts: 24

PostPosted: Tue Jun 27, 2017 1:16 pm    Post subject: Reply with quote

Arnold_X-P wrote:
Restarting the eggdrop will not solve the problem
The problem will come back later

See the problems with the version 1.8.1 view forum


Yeah, It seems you are right. After 4 days a got this:

Tcl error in script for 'timer611088': can't read "nickopauth": no such variable

I changed nothing...
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 Support & Releases All times are GMT - 4 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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