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.

Custom bot help

Old posts that have not been replied to for several years.
Locked
z
zackriggle

Custom bot help

Post by zackriggle »

I know that this is a forum for Eggdrop bots, but this is the only place I can think of going to for help on this type of thing.

I am implementing my own bot in C++, and have a few questions about the IRC protocol.

1.) Do I have to respond to a VERSION command sent by the server?

2.) Other than responding to PING commands, what other actions should I take to make sure that my bot stays online and an op (assuming that there are no other ops to kick me).

3.) How can I get the hostname string that has to precede all of my messages? (ie. mIRC displays: "Local host: adsl-xx-xx-xx-xx.provider.com").

4.) The colon is only used for the last parameter in a few commands (ie. PART), right?

5.) When a message is sent to a channel from any normal client, does it show up as a PRIVMSG message?

6.) If I just want my bot to support simple commands (when told to do so over IRC... ie. "kick nick" or "makeop nick"), does it have to support CTCP?

7.) How hard is XDCC to implement?
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

1) No, you dont.
2) The ping - pong signals and maybe building a botnet
3) fetch your own ip, shouldnt be a problem for a coder
4) dunno
5) it shows up as "PRIVMSG #channel :"
6) No
7) The DCC protocol is rather simple, just check sf / freshmeat for any open source client and see how it's done. XDCC is no difference to DCC, it's just the way the files are advertised and requested.
z
zackriggle

Post by zackriggle »

Well that cleared up a lot of things, thanks.
Locked