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 

[SOLVED] Change the bot's modes on irc

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


Joined: 21 Oct 2007
Posts: 3

PostPosted: Sun Oct 21, 2007 12:28 pm    Post subject: [SOLVED] Change the bot's modes on irc Reply with quote

Hello,

I would like to know if and how it's possible to change the eggdrop's usermodes on the server (so not the modes within a botnet or usermodes on the bot). I've been looking for a command for this but haven't been able to find one.
I would prefer to do this without the use of scripts, if it's possible ofcourse.


- Deceipher


Last edited by Deceipher on Wed Oct 24, 2007 9:03 am; edited 1 time in total
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 21, 2007 11:24 pm    Post subject: Reply with quote

eggdrop.conf:
Quote:
# 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"
}

_________________
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
Deceipher
Voice


Joined: 21 Oct 2007
Posts: 3

PostPosted: Mon Oct 22, 2007 7:45 am    Post subject: Reply with quote

Thanks for the reply. 2 things:
First, this obviously only changes the bot's modes on init, and not while the bot is already running.
Second, it doesn't even seem to work, since neither of the 2 commands i have set in that script (modechange and service identification) seem to work.
Back to top
View user's profile Send private message
TCL_no_TK
Owner


Joined: 25 Aug 2006
Posts: 509
Location: England, Yorkshire

PostPosted: Mon Oct 22, 2007 9:12 am    Post subject: Reply with quote

Quote:
First, this obviously only changes the bot's modes on init, and not while the bot is already running.
It wasn't clear from your post that you wanted to change it while the eggdrop was currently connected. And a simple .restart will reconnect the bot and fix the modes set in the eggdrop.conf like the example given.
Quote:
Second, it doesn't even seem to work, since neither of the 2 commands i have set in that script (modechange and service identification) seem to work.
can you paste what you have put for it, please. since if it dosen't work its more than likly down to human error and would probably help. If you wish to change the bots user modes while it is connected to an irc server. First, check that you have the dcc bind for the .tcl command enabled & then Secondly, dcc chat/telnet to the eggdrop's partyline and type .tcl putserv "MODE $botnick [[+/-]the user mode(s) you want to set/unset on the eggdrop]"; return. Razz and that should about do it. Just incase that wasn't clear from the syntax, here is my example of setting user mode +i on the bot and remove the usermode +s: .tcl putserv "MODE $botnick +i-s"; return and that would do that.
_________________
TCL the misunderstood
Back to top
View user's profile Send private message Send e-mail
Deceipher
Voice


Joined: 21 Oct 2007
Posts: 3

PostPosted: Wed Oct 24, 2007 9:02 am    Post subject: Reply with quote

Thanks, worked like a charm.
I found some error in my tcl script in the conf as well, so that is working as well now. Thanks for the help
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