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.

[SOLVED] Change the bot's modes on irc

General support and discussion of Eggdrop bots.
Post Reply
D
Deceipher
Voice
Posts: 3
Joined: Sun Oct 21, 2007 12:19 pm

[SOLVED] Change the bot's modes on irc

Post by Deceipher »

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.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

eggdrop.conf:
# 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
D
Deceipher
Voice
Posts: 3
Joined: Sun Oct 21, 2007 12:19 pm

Post by Deceipher »

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.
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

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.
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. :P 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.
D
Deceipher
Voice
Posts: 3
Joined: Sun Oct 21, 2007 12:19 pm

Post by Deceipher »

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
Post Reply