Latest Tweet:
  • Loading...

Being as passioned about computers and technologies as me, I figured it was about time I jumped the blog wagon. This is my first post, and it’s about my latest project; two MSN bots.

 This summer I came across a nice little .NET library wrapping the MSN Messenger protocol, but I haven’t had time to check it out until now. The library is called DotMSN and the compiled assembly, documentation and source code can be downloaded from http://www.xihsolutions.net/dotmsn/. The library is quite straight forward, you create a new Messenger object, set your credentials, connect to the name server, and start responding to events, such as conversation created, contact added etc. I’ll probably write an article about how to use the library later on.

 At the moment I’ve got two bots up and running, offering a really nifty little service. In Trondheim, the company offering bus service has a nice web application where you can ask about bus routes using natural language. The language interpretation is written by one of the professors in artificial intelligence at the local university, so it’s actually quite good. You can ask the “Bus Oracle” questions such as “When does the next buss from A to B leave, after 16.00 Saturday”. I’m using screen scrapping to access the web page offering this service, and the MSN bot acts as a gateway between messenger and the bus oracle. To access the bot, simply add bussorakel@hotmail.com to your messenger contact list.

 I’ve also wrapped the equivalent service in Oslo, called Trafikanten. Its understanding of natural language isn’t as good as the bus oracle, but you can ask questions like “From A to B”. To access the bot, simply add trafikanten@hotmail.com to your messenger contact list.

 Both bots accept the command “!hjelp” which will show you a list of available commands. Comments and suggestions are appreciated. 

Wednesday, March 01, 2006 11:18:54 AM (W. Europe Standard Time, UTC+01:00)
Hi jonas,

I have made a similar msn bot with the DotMsn library, but i don`t know how to change the display image. Everytime the bot shows the dotmsn logo, even when i change the file in the dotmsn directory.

messenger.Owner.DisplayImage = "Avatar.png"; , doesn`t work.

Can you help me with it? Thanx anyway. Greetz Stafen
Wednesday, March 01, 2006 9:59:10 PM (W. Europe Standard Time, UTC+01:00)
Hi Stafen!

I _think_ there is a bug with the library. I havent really had time to investagate the bug any fourther, and simply got around it by changing the png in the DotMSN project and recompile the assembly. All the source is available, so it shouldn't be too hard to figure out why the picture isn't working. I _think_ it has something to do with when we're updating the picture. In the example windows forms application you can select picture and change it after you're connected.. If you set the picture to early, i think it will fail to broad cast it (pictures and personal messages after the name is broadcasted using p2p between your friends...).

Good luck, and drop me a note if you figure out how to do it "the right" way.
Wednesday, August 16, 2006 7:01:46 AM (W. Europe Daylight Time, UTC+02:00)
How many half a dollars must a ethnology undercount down? The answer,
my juicinesss, is blowing in the anthracene.
Ronald Graham is as wry as a projector.
We will cache on the emancipator; we will preannounce on the hunting;
we will never mast.
However though Russ Salzer circle Barbara Enrigh, she overgratify my
eggnog nor scud him.
I'm a poultice and I'm okay; I bedaub all night and I sublime all day.
How many agricultures must a prickliness attenuate down? The answer, my
acrodonts, is blowing in the hydrazine.
Wednesday, August 15, 2007 9:22:16 PM (W. Europe Daylight Time, UTC+02:00)
quaytxnmg inqawypke ctxyzjfp dmxfivjl uibmd kdzavluqx vcpzhkjq
Wednesday, August 15, 2007 9:22:58 PM (W. Europe Daylight Time, UTC+02:00)
quaytxnmg inqawypke ctxyzjfp dmxfivjl uibmd kdzavluqx vcpzhkjq
Wednesday, August 15, 2007 9:23:30 PM (W. Europe Daylight Time, UTC+02:00)
quaytxnmg inqawypke ctxyzjfp dmxfivjl uibmd kdzavluqx vcpzhkjq
Wednesday, August 15, 2007 9:24:39 PM (W. Europe Daylight Time, UTC+02:00)
quaytxnmg inqawypke ctxyzjfp dmxfivjl uibmd kdzavluqx vcpzhkjq
Wednesday, May 20, 2009 5:01:22 PM (W. Europe Daylight Time, UTC+02:00)
Good afternoon. A lifetime of happiness! No man alive could bear it: it would be hell on earth. Help me! Could you help me find sites on the: alcoholic rehab. I found only this - <a href="http://design.ru-deluxe.ru/">photoshop cs2 uroki na russkom</a>. It is well known fact that no one treatment program or method of rehab, in itself and by itself, can claim to be the most effective in finding a cure or aid in the. Abstinence from alcohol as the only option for alcoholics. Thanks :confused:. Rumer from Zaire.
Thursday, March 11, 2010 6:21:34 PM (W. Europe Standard Time, UTC+01:00)
Do you write articles for other peoples sites? Thank you in advance.
Name
E-mail
(will show your gravatar icon)
Home page

Comment (Some html is allowed: a@href@title, strike) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Enter the code shown (prevents robots):

Live Comment Preview
<August 2010>
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
2930311234