EnergyMech

Forum | Features | Download | Addons | Help | #emech | Links | About | Contact

Versions | News Archive | Installing | Linking | Configuration | Commands | FAQ


The time is now Thursday, April 7th, 2022, 12:24pm

Create account ]   User/Pass   


Forum Index :: Generic Discussion :: Trouble with bot issuing/recieving commands. :: Reply to this topic

Author
 
happydud
Posted :: 9:57pm, Sun, Mar 23, 2008     Subject :: Trouble with bot issuing/recieving commands.

(anonymous)
 
    I just started an IRC server and I'm trying to install the energymech bot. I am having some strange issues with commands though. I can get the bot to join a channel and perform one command (I can have it "say" something, or msg Nickserv and identify), but after that it does not execute any more commands. (These are all being placed in the mech.conf file)

The offending part of the mech.conf file is below, along with notes.

nick 1 PKBot
set altnick PKBot2 PKBot3

;
; set connection variables for this bot
;

set userfile user.file
set ident robot
set ircname EnergyMech 3: The Next Generation
set umodes +w
set cmdchar !
set modes 6
set cc 1

;msg NickServ IDENTIFY pass ;NOTE: if I identify here, it succeeds but will not join the channel

;
; join a channel
;

join #apk
;say Mr. Watson, Come here please. ;NOTE: This will work, but then
;the later identifies will not.
set pub 1
set aop 1
set avoice 1
set prot 4

msg NickServ IDENTIFY password ;If the identify and the say were not executed,
;this will work.

say Mr. Watson, Come here please. ;This will not work if I have already tried to identify.

========EO(relevent parts of)F==========

The bot will not respond to any other commands messaged to it either.

When running it under the -d flag, I noticed a lot of "(send_spy) src message format = '-%s- %s'" messages.

Any ideas? I've read the other threads on this board, I tried to edit the tcl script that was posted but wasn't sure how to get it to work if I'm on my own server. Trying to get the bot to connect and then message it with "verify" also did nothing.

Thanks.

 
proton
Posted :: 10:55am, Mon, Mar 24, 2008


Posts: 165
 
    the config file is "executed" before the bot even connects to IRC so, the commands in there if they try to do anything with IRC like send messages or such are just dropped on the floor. you might see the debug messages for them but they will not cause messages to IRC, only parse and then drop, like "ok send a message, heyyy, I got no connection! well fuck it *toss*"



 
happydud
Posted :: 11:19pm, Mon, Mar 24, 2008

(anonymous)
 
    Really? Because when I have "say Mr. Watson, Come here please" as the only command, the bot will join the channel and say that. So it's not just debug messages, it is actually executing the commands after it connects.

So A) where would I put the commands to tell the bot what to do on startup, and/or B) Can you give me an example of a command that should work? I set the command character to !, but I can't get any commands to work. I may just have the wrong synatx, but I don't think so, but I'd like to have some confirmation of a command that DOES work and that gives feedback to confirm it works, just to double check the bot is hearing things.

 
happydud
Posted :: 5:20am, Tue, Mar 25, 2008

(anonymous)
 
    My friend and I ended up rewriting half your bot, but we fixed all the problems.

When was the last rewrite? Because no offense, but the coding is.. chaotic.. at best.

Thanks for the help though.

 
proton
Posted :: 11:46am, Thu, Mar 27, 2008


Posts: 165
 
    well if you ended up rewriting half of 30,000 lines in a couple of days you are apparently much smarter than me so why dont you post your code here so others can share your excellent work?

 

Copyright © 2000-2005 Proton,  All rights reserved. Last edited August 16th, 2005.
HTML 4.01 CSS