|
| Author |
Message |
cepheus Newbie

Joined: 01 Sep 2005 Posts: 3 Location: UK
        
|
Posted: Thu Sep 01, 2005 12:52 pm Post subject: MSN to IRC bot |
|
|
Not sure if this is really the correct forum so please move if needed.
Now onto my problem.
I have built on the MSN2IRC bot and have it talking both directions (but out of sync), Ill explain further.
I start my IRC / MSN bot
It enters IRC
It goes online in MSN
It sends me a message telling me its online in MSN
I sent it a MSN message, this message gets displayed in IRC
I reply via IRC to the msn message, NO message in MSN
I send another message in MSN, I then get the IRC message.
How can I get the msn bot / protocol to reply straight away to a irc OR MSN message?
I do have the while loop.
while( $run )
{
$irc->do_one_loop();
$msn->do_one_loop();
}
and within the irc ans msn handlers I have a list of irc and msn commands. Any advice would useful. Maybe theres a MSN handler Im missing that dont know about. Thanks in advance for any help offered. |
|
| Back to top |
|
 |
mattaustin Sentinel

Joined: 19 Jul 2004 Posts: 556 Location: Los Angeles, CA
  votes: 1
|
Posted: Thu Sep 01, 2005 2:34 pm Post subject: |
|
|
| I have posted full code to an msn2irc bot on this forum, u may have to search a little. |
|
| Back to top |
|
 |
cepheus Newbie

Joined: 01 Sep 2005 Posts: 3 Location: UK
        
|
Posted: Thu Sep 01, 2005 4:40 pm Post subject: code |
|
|
| Matt Ive done a search on both bot-depot forums and have not found your msn2irc code. Would you please post it again if thats possible, thanks. Sorry for being a pain but the google search for this forum sucks. Thanks again. |
|
| Back to top |
|
 |
darkmonkey The Merovingian

Joined: 18 Apr 2004 Posts: 2557 Location: London, England
     votes: 7
|
|
| Back to top |
|
 |
cepheus Newbie

Joined: 01 Sep 2005 Posts: 3 Location: UK
        
|
Posted: Fri Sep 02, 2005 8:29 am Post subject: two forums |
|
|
Ok so matt really wanted me to search the other 'invision board' type forum rather than this the phpbb forum that I posted on. Why have two forums??
Darkmonkey thank you ever so much for your help.
Ill like to point that, that the code is old and sendmsg has been replaced by sendmessage as msn2 is out.
I can get the bot to connect to irc and msn but thats all about it does. No relaying of messages from irc nor msn, the only commands I can see are: join,nick and socks. Does this bot still work, the one I have wrote based on the echobot does a lot more. Thanks in advance for and further help. |
|
| Back to top |
|
 |
Cer Upgraded Agent

Joined: 03 Feb 2004 Posts: 3776 Location: Michigan
  votes: 4
|
Posted: Fri Sep 02, 2005 3:09 pm Post subject: |
|
|
Most IRC bot programmers only have the bot react to private messages, so saying stuff publicly in the channel probably won't be relayed to MSN, try sending a private message to the bot. _________________ Current Site (2008) http://www.cuvou.com/ |
|
| Back to top |
|
 |
darkmonkey The Merovingian

Joined: 18 Apr 2004 Posts: 2557 Location: London, England
     votes: 7
|
Posted: Sat Sep 03, 2005 11:12 am Post subject: |
|
|
No, your bot does. MSN2IRC, as well as other bots, respond to channels. It's just as easy to do one as it is to do the other. _________________ ~ Josh
[ Need bot hosting on a dedicated server? PM me. ] |
|
| Back to top |
|
 |
Cer Upgraded Agent

Joined: 03 Feb 2004 Posts: 3776 Location: Michigan
  votes: 4
|
Posted: Sat Sep 03, 2005 4:04 pm Post subject: |
|
|
| darkmonkey wrote: | | No, your bot does. MSN2IRC, as well as other bots, respond to channels. It's just as easy to do one as it is to do the other. |
The one somebody at WiredBots made only would respond to PMs too, and a couple of the other bots I've found on Google only respond to PMs. _________________ Current Site (2008) http://www.cuvou.com/ |
|
| Back to top |
|
 |
darkmonkey The Merovingian

Joined: 18 Apr 2004 Posts: 2557 Location: London, England
     votes: 7
|
Posted: Sat Sep 03, 2005 8:08 pm Post subject: |
|
|
Nono, I'm not saying that it's only your bot that does that, i'm just saying that it's just as easy to make it respond to channels (change the message handler) as it is to respond to PMs. _________________ ~ Josh
[ Need bot hosting on a dedicated server? PM me. ] |
|
| Back to top |
|
 |
alienz Almost An Agent

Joined: 22 Mar 2004 Posts: 1436 Location: Mars
 
|
Posted: Mon Sep 05, 2005 9:18 pm Post subject: |
|
|
The method in Net IRC is capable of getting and responding to both channel and private messages. _________________ Check out Botworld! A dev resource for things bot.
Downloads, articles, news, fourm and more.
http://botworld.marzopolis.com |
|
| Back to top |
|
 |
|