Need to make a jabber bot

8 views
Skip to first unread message

meri...@gmail.com

unread,
Apr 29, 2008, 1:59:03 PM4/29/08
to jabber-net
Right now I have a very simple task, make a bot that's simply going to
hold a connection open to keep te...@testserver.com logged in and
visible to other users. Are there any examples that can show me how
to do this. This is just the first step, but other functionality can
come later on. Thanks for your help.

Joe Hildebrand

unread,
Apr 29, 2008, 3:43:19 PM4/29/08
to jabbe...@googlegroups.com
This shows some techniques you can use for bots:

http://code.google.com/p/jabber-net/wiki/SendMessage

The important part is that if you don't have a user interface, you need to
do something to ensure that your program doesn't exit. Calling WaitOne() on
a ManualResetEvent is one such approach. Calling Thread.Sleep() in a loop
is another.

Miguel Díaz Macedo

unread,
Apr 30, 2008, 11:55:22 AM4/30/08
to jabbe...@googlegroups.com
I have a windows service that does exactly that, I can share my code if you want.
--
Saludos
Miguel

Tim Marman

unread,
May 10, 2008, 11:28:48 PM5/10/08
to jabbe...@googlegroups.com

Miguel, I’d definitely be interested – any chance you can post it somewhere?

 

--

TM | (w) 347-284-6150 | (w) http://notch.es | (p) http://tmarman.com

meri...@gmail.com

unread,
May 14, 2008, 4:33:13 PM5/14/08
to jabber-net
We eventually worked something out that is half jabber.net and half
Openfire plugin. Thanks all :)

On May 10, 10:28 pm, Tim Marman <t...@marman.org> wrote:
> Miguel, I'd definitely be interested - any chance you can post it somewhere?
>
> --
> TM | (w) 347-284-6150 | (w)http://notch.es<http://notch.es/> | (p)http://tmarman.com<http://slashstar.com/blogs/tim>
>
> From: jabbe...@googlegroups.com [mailto:jabbe...@googlegroups.com] On Behalf Of Miguel Díaz Macedo
> Sent: Wednesday, April 30, 2008 11:55 AM
> To: jabbe...@googlegroups.com
> Subject: Re: Need to make a jabber bot
>
> I have a windows service that does exactly that, I can share my code if you want.
> On Tue, Apr 29, 2008 at 12:59 PM, mericl...@gmail.com<mailto:mericl...@gmail.com> <mericl...@gmail.com<mailto:mericl...@gmail.com>> wrote:
>
> Right now I have a very simple task, make a bot that's simply going to
> hold a connection open to keep t...@testserver.com<mailto:t...@testserver.com> logged in and
Reply all
Reply to author
Forward
0 new messages