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 

bot mode

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


Joined: 17 Jun 2018
Posts: 27

PostPosted: Fri Jan 11, 2019 1:24 am    Post subject: bot mode Reply with quote

how do i set the bot to /mode +B ???
thanks
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1008

PostPosted: Fri Jan 11, 2019 10:49 am    Post subject: Re: bot mode Reply with quote

roger wrote:
how do i set the bot to /mode +B ???
thanks


Assuming that you want this to happen every time the bot logs into irc server, correct?


One idea -

Look in eggdrop.conf

Find this section:

Code:

 # 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"
 }



Edit one line -

From: putquick "MODE $botnick +i-ws"

change to: putquick "MODE $botnick +iB-ws"

Save the file.
You'll need to .restart the bot, so it logs in again, for that proc to be triggered to run again.
After restarting and bot logs into irc server again, check with a
/whois on the bot's nick. See if the irc server says it's a bot.

I hope this helps.
_________________
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1008

PostPosted: Fri Jan 11, 2019 10:58 am    Post subject: Re: bot mode Reply with quote

roger wrote:
how do i set the bot to /mode +B ???
thanks


If you just want to be able to send that command manually -


Have you enabled the use of raw logging, for your (owner's) use, in eggdrop.conf?
If not, find that section in eggdrop.cong and enable it.

Once it is enabled, then you can use this command in the partyline :
.console +r
to turn on raw logging. You'll see everything coming into the bot now, in the partyline.

Now do:

.dump mode <botnick_here>

and you'll be able to see what the irc server returns. This is probably what you are used to, with your irc client, to check modes on yourself.

You can send the mode command to the irc server, from the bot, to change modes on the bot:

.dump mode <botnick_here> +B

ought to do it.
Just check it again, with another:
.dump mode <botnick_here>
to be sure.

Keep in mind that if you elect to do it manually as just described, that it is temporary. Then next time you .restart the bot, it will revert to whatever modes are configured in that section of eggdrop.conf, described in previous post above.

You'll probably want to do:
.console -r
when you are done, as seeing all the stuff coming in can get old, real fast.
_________________
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
Back to top
View user's profile Send private message
roger
Voice


Joined: 17 Jun 2018
Posts: 27

PostPosted: Fri Jan 11, 2019 11:20 am    Post subject: thank you Reply with quote

i experimented this morning and did like you said in first post and it works fine
appreciate the answer like this forum, everytime i goof or need help there is always someone answering Very Happy Very Happy Very Happy
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