Skip to content
MSN Addons

IRC/Group Bot

A TG007 community discussion started by LAS.

Discussion 4 posts
Page 1 of 1
Open
Topic #6370 · 4 published posts · 1,647 views

alias irc.bot { 
 if ($1 == -d) { sockclose ircbot }
 if ($1 == -c) { sockopen ircbot <server> <port> | sockmark IRCBot $iif($active == $chan($active),$active,$comchan($me,1)) }
}
on *:SOCKOPEN:IRCBOT:{
 sockwrite -nt $sockname NICK Groups
 sockwrite -nt $sockname USER GROUPS $rand(11,99) $rand(11,99) $rand(11,99) :Group&IRC Chat
 sockwrite -nt $sockname JOIN <channel>
}
on *:SOCKREAD:IRCBOT:{
 var %read 
 sockread %read
 tokenize 32 %read
 var %sn = $remove($mid($1,2,$calc($pos($1,!,1) -1)),!)
 if ($1 == PING) { sockwrite -nt $sockname PONG $2 }
 if ($2 == PRIVMSG) && ($chr(35) isin $3) { privmsg $sock($sockname).mark $upper(%sn) Says, $mid($4-,2) }
}
on *:TEXT:*:#:{
 if ($sock(IRCBOT)) { .sockwrite -nt IRCBOT PRIVMSG <channel> $+(:,$msn.decode($nick),) says, $1- }
}

 

This is a small irc/group bot I made a while back, and I've only tested it on Vincula so I know for sure it works. Its not much I know, but if you want more added to it, then by all mean go right ahead. Enjoy.

 

oh before I forget.

 

make sure you change <channel> to the channel you wish the IRC part of the bot to join. And change the <server> and <port> to the server and port you want it to connect to.

 

Also I made this for a group a while back, but I couldnt get it to work, mostly cuz I didnt have the time. But sense I have it working, I'd figure I'd post it. Actully this bot doesn't just work in groups but any channel on msn.

 

Commands:

/irc.bot -c/-d

 

Nice bot, is this for MSN tho? wheres the auth?

Yes its for msn, though the auth is used by Vincula, like I said its for vincula only, sense this is all I test it on, If you notice from the coding it connect to IRC, and relays messages between,

on *:TEXT:*:#:{ if ($sock(ircbot)) { .sockwrite -nt ircbot PRIVMSG <channel> $+(:,$msn.decode($nick),) says, $1- } }

That uses vincula, I dono what other connections this would work on though. At anycase I do how ever know it works on vincula. Of course I'm using, "Vincula Neo 4.9 EZR 5.02p" as the connection with this Addon. So it doesn't need auth for msn. Sorry I didnt explain it better. Here let me try,

 

1. type /irc.bot -c "this will connect to an IRC server of your liking"

2. Make sure <channel> is changed to the channel you wish it to join, and relay messages to.

Dont worrie however about setting the msn channel, thats done by sockmark.

 

Now this is an irc bot that relays message between msn and irc rooms. Its really neather msn or irc but both. So theres no real cat. that I can post this in.

From another topic I posted in IRCD, I remebered what "Hixxy - I can think of one use for it; being able to have a bot without having any of the data it receives display anywhere." said. And I remebered I had a bot some what like that.

 

Ok, maybe make this even more simpler.

 

1. Put in your mirc folder with your other scripts/addons.

2. Load it to the script, make sure your using Vincula connection.

3. Edit <channel>, <server>, and <port> to the channel on irc, the server its connecting to, and the port the server is listen on.

4. Type in a channel on msn, /irc.bot -c

5. Now the bot should relay messages between IRC and MSN.

Ah ok i tried it on phreik chat connected to there lol