irc

Implementing CTCP commands in an IRC bot (Haskell)

Hi I have followed the tutorial on the Haskell wiki about implementing an IRC bot. and everything worked out fine. But once I started extending it, I realised that It would need to respond to CTCP requests from other users for commands like version and ping. These commands work for the server but not for the bot. I read the rfc's for C...

PHP fgets "noblock"?

I'm trying to build a little command-line IRC client in PHP because I'm getting sick of all those clients having you click through twenty GUI popups/windows to connect to a new server. Everything is working so far, but I'm stuck with the main loop that sends my input commands/messages to the server and receives the new data from it. As...

How do I correctly shutdown a Bot::BasicBot bot (based on POE::Component::IRC)?

This is a sample script. When I hit Ctrl+C, the bot quits IRC but it reconnects back after some time. How do I shut down the bot correctly? #!/usr/bin/perl package main; my $bot = Perlbot->new (server => 'irc.dal.net'); $SIG{'INT'} = 'Handler'; $SIG{'TERM'} = 'Handler'; sub Handler { print "\nShutting down bot...\n"; $bot->shutdown(...

Python (Twisted) - reading from fifo and sending read data to multiple protocols

Hi, Im trying to write some kind of multi protocol bot (jabber/irc) that would read messages from fifo file (one liners mostly) and then send them to irc channel and jabber contacts. So far, I managed to create two factories to connect to jabber and irc, and they seem to be working. However, I've problem with reading the fifo file - I...

What's the right way to kill child processes in perl before exiting?

I'm running an IRC Bot (Bot::BasicBot) which has two child processes running File::Tail but when exiting, they don't terminate. So I'm killling them using Proc::ProcessTable like this before exiting: my $parent=$$; my $proc_table=Proc::ProcessTable->new(); for my $proc (@{$proc_table->table()}) { kill(15, $proc->pid) if ($proc->ppid =...

Are this chat using "long polling" or "http streaming" ?

Are this chat using "long polling" or "http streaming" ? http://go-mono.com/moonlight/chat.aspx ...

Twisted - how to create multi protocol process and send the data between the protocols

Hey, Im trying to write a program that would be listening for data (simple text messages) on some port (say tcp 6666) and then pass them to one or more different protocols - irc, xmpp and so on. I've tried many approaches and digged the Internet, but I cant find easy and working solution for such task. The code I am currently fighting ...

Connect to an irc server with password

I'm writing script in remote.ini The script looks like on 1:start:{ server some.irc.server server -m another.irc.server } The script works well as when I open mIRC, it automatically connect to 2 servers above Now, I want to connect to an irc server that require password, say abcdef How can I write script in remote.ini to con...

Python unicode issues (2.6)

I'm currently working on a irc bot for a multi-lingual channel, and I'm encountering some issues with unicode which are proving nearly impossible to solve. No matter what configuration of unicode encoding I seem to try, the list function which the below code sits within just flat out does nothing (c.notice is a class function which sen...

How do you stream text to an IRC Channel

Hi, does anyone know how you go about streaming text to a IRC server? I have a game server, and i'd like to stream the chat to IRC. I can get the chat as a string within a C# program.. Anyone know how to do this? Or a good resource to look at? Cheers ...

How to create a simple browser-based IRC client?

I want to implement a chat service on my site, and wonder how to create a simple browser-based IRC client from scratch? I have a linux box and can install whatever I want on it. Google finds tutors on how to setup an IRC server but no instructions on how to create an IRC client. (As client languages, I can use JavaScript or Flash.) ...

About irc clients

Is it possible for a browser-based irc client to work without using any gateway, that is, to communicate with the irc sever directly? ...

What solution would you suggest for implementing both chat and IM on the site?

Should I pick up IRC or go another route? What I need are public chat and private instant messaging on my social network. I do not wish to use 3rd-party solutions. (I plan to rent VPS for the matter.) ...

Java Shoutcast Query

Hi there, I have a Java IRC bot which i would like to query a shoutcast server and return basic information (song playing etc). Can someone guide me in the right direction? Thank you. ...

What is better to choose for public and private chats on the site: IRC or Jabber?

I am looking for a solution to implement a public chat and a system of instant messaging within the site. ...

How to disable commands in unrealircd?

Would you please describe me how I can disable any command I wish on my irc server (unrealircd)? ...

Building an IRC bot in Java

After some googling an obvious answer or starting point for a Java IRC bot has not presented itself, my question; is there an existing framework to help me do build an IRC bot? Failing that, is this possible using Sockets in Java to do this and has anyone seen an example around the web? cheers guys. ...

How do I fork correctly in a perl module for znc?

I'm currently writing an IRC bot. The scripts are loaded as perl modules in ZNC but the bot gets disconnected with an Input/Output error if I create a forked process. This is a working example script without fork, but this causes the bot to freeze until the script finishes doing its task. package imdb; use warnings; use strict; sub n...

.NET Windows Live Messenger Connectivity?

Hey there guys, I'm working on an IRC bot project, Trying to integrate Windows live into a bot, And have received messages sent to the channel. But the current problem is that the old messenger API that I had no longer works. And the current API i can only find information about addins (complicated for the end user to set up unless I ma...

VB.net Simple IRC Client

How would I go about making a simple IRC client with these things What I am using: Nickname TextBox Connect Button Message TextBox Send Message Button Refresh Button ListBox Restrictions: No commands at all just being able to send messages I am using a listbox for recieving messages ...