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 

ns identify Help

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
Silence
Voice


Joined: 30 Sep 2006
Posts: 3

PostPosted: Sat Sep 30, 2006 6:37 pm    Post subject: ns identify Help Reply with quote

Hi, I'm having some trouble getting this to work for the bot. I have tried several tcl scripts, none however were succesfull. I have also tried:

Code:
bind evnt - init-server evnt:init_server

proc evnt:init_server {type} {
  global nick
  putquick "MODE $botnick +iR-ws"
  putquick "privmsg nickserv :identify Pass."
}


However, I'm not sure if I placed the code in the correct location... I assume this was to be placed in the config? I placed it just below set servers {}

Any assistance will be greatly appreciated Smile
- Regards.
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sat Sep 30, 2006 7:11 pm    Post subject: Reply with quote

You have placed it in the correct location and the bot will identify to NickServ; on connect only!

Your bot is probably ignoring NickServ because of the notices services sent on connect. The solution is to add the hostmask of services to your bot as a (global) friend.

I did the following (for DALnet):
Code:
Enfield HANDLE           PASS NOTES FLAGS           LAST
Enfield DALnet           no      0 f              13:39 (#dalnet)
Enfield   HOSTS: *!*@dal.net

List the ignores '.ignores *' and remove the one for the network your bot is on.
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sat Sep 30, 2006 7:40 pm    Post subject: Reply with quote

@Silence:
You've made the variable "nick" global, but use the variable "botnick" as if it was global..
Change "global nick" into "global botnick" and it should work just fine...
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sat Sep 30, 2006 8:07 pm    Post subject: Reply with quote

I missed that bit. Embarassed

You can also simply use $::botnick.

Code:
bind evnt - init-server evnt:init_server

proc evnt:init_server {type} {
  putquick "MODE $::botnick +iR-ws"
  putquick "privmsg nickserv :identify Pass."
}

My suggestion (above) re ignored services still applies. Very Happy
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
Silence
Voice


Joined: 30 Sep 2006
Posts: 3

PostPosted: Sat Sep 30, 2006 8:09 pm    Post subject: Reply with quote

Hi, Thank you both for responding to assistance me.

Quote:
Change "global nick" into "global botnick" and it should work just fine.

For some reason, when I use botnick the bot does not connect to the server successfully. Would this mean the setup for the bot is incorrect?

Quote:
List the ignores '.ignores *' and remove the one for the network your bot is on.

I understand what you mean, however there currently are not any networks ignored. Could I possibly run the ns identify at a select time? For example, I press ctrl+i or something (send a command) and the bot runs the ns identify command?

Thanks again!
Back to top
View user's profile Send private message
Azeem
Voice


Joined: 26 Sep 2006
Posts: 14

PostPosted: Sat Sep 30, 2006 8:59 pm    Post subject: Reply with quote

Quote:
For some reason, when I use botnick the bot does not connect to the server successfully. Would this mean the setup for the bot is incorrect?


this cannot happen.. i guess global botnick have nothing to do with connection.
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sun Oct 01, 2006 7:24 am    Post subject: Reply with quote

@Silence:
Well, it means something odd is going on..
init-server bindings should'nt trigger until after your bot successfully connected to the server, so the contents of init-server script really should'nt matter unless it contains something like: putserv "QUIT" (I'm assuming it does'nt Wink

Also, where you put it really does'nt matter, with the exception that you must put the binding after you've loaded the server-module.

Do you get any error-messages during startup?
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sun Oct 01, 2006 8:49 am    Post subject: Reply with quote

Silence: eggdrop logs a lot of stuff. On your shell start your bot with the -n option and watch what is happening; CTRL + C terminates.
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
Silence
Voice


Joined: 30 Sep 2006
Posts: 3

PostPosted: Sun Oct 01, 2006 8:23 pm    Post subject: Reply with quote

Ahh thank you very much. I now have figured out that it is connecting, but just as you said it places the services under ignore and then reconnects.

Thank you very much for your help Smile
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 -> Eggdrop Help 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