JavaScript is not enabled on your browser and in order to properly use Coder Profile JavaScript is required.
To view instructions on how to enable JavaScript on your browser click here .
otoom
United Kingdom, West Midlands
Overview
User Name
otoom
Real Name
Ant
Location
United Kingdom West Midlands
Occupation
Hobby Coder...
Gender
Male
Age
14 Years Old
WebSite
doxcoding.com
10 Articles
19 Source Codes
2 Pinned Codes
0 Entries
100 Friends
4 Emoticons
17 Comments
1 Announcements
1 Referrals
Whats up with my damn irc bot.
Web Development :: Perl / CGI
Hey all.
Im working on a simple irc bot but it will not connect.
Anyone know why?
#!/usr/bin/perl
use strict;
use IO::Socket;
use Socket;
my $server = "theseraphim.mine.nu";
my $port = '6667';
my $chanel = "#cybershade";
my $name = "oToom";
my $con = new IO::Socket::INET(PeerAddr => $server, PeerPort => $port, Proto =>
"tcp") or die "Couldn't connect xD";
print $con "NICK Jessica\r\n";
print $con "USER Jessica : Jessica\r\n";
print $con "JOIN $chanel\r\n";
while (my $body = <$con>){
chop $body;
if($body =~ /^PING(.*)$/i) {
print $con "PONG $1\r\n";
}
if($body = /^¬version(.*)$/i) {
print $con "PRIVMSG $chanel I am no bot! Version 0.1\r\n";
}
if($body = /^¬owner(.*)$/i) {
print $con "PRIVMSG $chanel I belong to oToom!\r\n";
}
}
Cheers all.
Ant
View Topic (2 Replies)
Pulling users online
Web Development :: PHP
Hey,
I was just wondering how to pull the users online out of a forum.
As on DoxCoding, i have an IPB board.
And one the index page, i would like to add something into the right hand column that tells them how many users are online.
I know, it may be hard as you dont have access to the board,
But could you give atleast and idea.
Cheers.
Ant
View Topic (2 Replies)
Please login to post comments.
I really like the language. It don't think that it beats out C++ as my #1, but I do think that it steals the #2 spot for me :)
Off the Ruby website, I downloaded the interpreter and editor. That's all you
need to run your code.
As for learning Ruby, the site has several links to tutorials. I used those and
they were pretty good.
I looked at sockets, but I haven't had time to fully learn them. That'll
come later.
::
::
::
::
::
::
Version 1.40.01
Copyright � 2007 - 2008, Scott Thompson, All Rights Reserved