How to create an IM bot with C#
Asked Answered
S

4

9

Is there an easy way to create an IM bot on multiple im networks (aim, gtalk, yim, etc) that can accept and interpet specific commands sent to it to perform a server related task?

Lets say for instance I have a website for managing an rss feed. I want to send a command to an IM bot to add another feed to my collection. the IM bot would associate my screen name with my account from prior setup on the website.

Seaward answered 11/2, 2009 at 4:10 Comment(0)
V
16

I have done some internal bots for my company using the XMPP (Jabber) protocol, I've used the agsXMPP SDK and the Jabber.NET client libraries, I was looking for APIS to work with YIM, AIM and Windows Live Messenger but I've found only COM exposed APIS, nothing for .NET...

But an idea comes to my mind, with the XMPP Protocol you can configure a local server with IM Gateways, that allow users to access networks using other protocols through your server

I use eJabberd, you can install a variety of transport gateways to connect with other IM protocols (AIM, MSN, ICQ, GTalk...

To GTalk you can connect directly using the libraries I mention...

A sample ICQ gateway:

Vocalise answered 11/2, 2009 at 5:7 Comment(1)
this is very interesting. this is exactly the answer i was looking for . thanks!Seaward
C
5

The short answer to this question is yes this can be done relitivly easily. Sedning and receiving IMs sending, receiving and interpreting requests from the network you wish to communicate on and there are libraries available for each of the major IM protocols to make this easier.

For messenger you can try the DotMsn library, I have used it in the past but at that time it was still quite new and I have not used it since so I can't vouch for it's quality.

Jabber uses the XMMP protocol which is an open-standard so there are bound to be plenty of client libraries available.

If I recall correctly Google Talk uses this protocol or a modified version thereof.

Cosmorama answered 11/2, 2009 at 5:3 Comment(1)
+1 - I was chasing an MSN library specifically. The DotMsn library is now quite old but there is an actively maintained fork called msnp-sharpKine
N
3

I dont have experience with c# but I have written one for AIM and Gtalk using PHP. http://www.imified.com/ is the best place to start if you looking for a easier way to write an IM bot.

Basically you create an account in imified.com . Name your bot and link a script. When ever a message is sent to the bot, imified.com automatically runs this script.

Here is a link for you get you started!

Nevers answered 11/2, 2009 at 4:52 Comment(1)
I was looking at this tonight myself, seems like a good approach though for business use it will likely be fee based in the future.Tangram
C
1

We have professional .NET/COM/VCL library for MSN/Yahoo/ICQ/AIM/GTalk/Jabber. Please take a look at http://www.imcomponents.com/ if you like.

Callow answered 22/12, 2009 at 2:53 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.