Hello, I am making an IRC application and I was wondering how I could make a simple event that gets called like onMessage() every time a IRC message comes through so I can then do something like this in my main class: public void onMessage(String message){ System.out.println(message); //or Handle commands } I think it has something to do with interfaces but I can't find a tutorial on how I could do this. I am still learning about java. Thanks

Member Avatar
Member Avatar
+0 forum 2

Hi, I have this idea to control a PC remotely using sms. Here is how I would do it. 1.Facebook allows users a lot of control over their accounts through sms including private messages. So, getting the message to facebook through sms is easy. But the PC has to take the message from the facebook server which is the trouble. Facebook messages cannot be accessed through a curl script. 2.So I searched for command-line based ircs that can log in to a particular room and receive commands from my mobile irc client. But that wouldn't work either because cmd based …

Member Avatar
Member Avatar
+0 forum 1

Well! I came to know about Daniweb IRC very recently. And would like to join the party. But i heard that it is only possible in Mozilla Firefox. So is this true? And can i use IRC chat in chrome, if yes, How?

Member Avatar
Member Avatar
+0 forum 5

Hi everybody, If i create my own IRC channel, will the server admin be able to see the chat and the IPs of users ? What do i need to get an anonymous chat ? I mean that nobody can see the IPs etc. Sorry if im not clear but im new to irc and doesn't know anything about it. Thanks

Member Avatar
Member Avatar
+0 forum 1

Hello all! I'm using the phenny IRC bot, and I've got this script, to greet people when they join a channel: #!/usr/bin/env python """ greet.py - Phenny Sahana-Eden Greet Module (c) 2011 Nolan Lum <nol888@gmail.com> """ import os, re import sqlite3 def setup(self): fn = self.nick + '-' + self.config.host + '.greet.db' fn = os.path.join(os.path.expanduser('~/.phenny'), fn) self.g_conn = sqlite3.connect(fn) self.g_conn.execute("""CREATE TABLE IF NOT EXISTS users( name VARCHAR(60) PRIMARY KEY)""") fn = self.nick + '-' + self.config.host + '.greet.txt' fn = os.path.join(os.path.expanduser('~/.phenny'), fn) if not os.path.exists(fn): try: f = open(fn, 'w') except OSError: pass else: f.write('Welcome to #example, %s!\nptressel') f.close() try: …

Member Avatar
+0 forum 0

Hi, I've written a simple IRC bot. but I have some problems, can you please help? #1 How to list all users on a channel? #2 How to get if a command/message sent by an op or not? Same with halfop/voice/owner? #3 How to get who sent the command/message (by name). Thanks.

Member Avatar
Member Avatar
+0 forum 1

Hello, I am trying to create an IRC server. The thing is that I dont want this server to run on "localhost", I want to connect this server to other upstream IRC servers. I dont know how to do that. I.E. I want this server to connect to smth.hostname.com on port 9997 and get information from it. Please help!!! [CODE] public class Server { public static void main(String[] arg) { new Server(60656); } private ServerSocket serverSocket; Server(int port) { try { serverSocket = new ServerSocket(port); System.out.println("Server waiting for client on port " + serverSocket.getLocalPort()); while(true) { Socket socket = serverSocket.accept(); …

Member Avatar
Member Avatar
+0 forum 1

So I'm writing a bit of code for use in an IRC bot. I tried to use scheduler to get around the barbaric-ness of calling time.sleep() every time I want the bot to delay for a few seconds. In scheduler you can choose the delay function "for example time.sleep()"-- but I haven't found any mention of other delay functions anywhere on the net. Being an IRC bot it's important that it can receive pings and distribute pongs when necessary. time.sleep(), however, pauses the entire .py, rendering the ping/pong lines irrelevant and ultimately leading to a ping timeout. [CODE]import time import …

Member Avatar
Member Avatar
+0 forum 2

Just wondering if there is an official IRC channel for DaniWeb?

Member Avatar
Member Avatar
+0 forum 2

I would like some feed back on my code. It is an IRC bot written in Python 2.6. What I might be doing wrong/inefficient. Better ways of doing something. And anything that will help sharpen my skills. I know I probably should have wrapped it into a class, and the error handling is sloppy. This is my first attempt at a IRC Bot as well. The hardest part about this project was figuring out the IRC protocol and how to send certain commands. The only module that isn't a part of the standard library is xgoogle and can be found …

Member Avatar
Member Avatar
+0 forum 2

With the exception of Digg, all the major social networking sites had more women than men. I wonder why? Why do you think so? Personally, I know I have been on social networking sites since 1992 via Usenet and IRC. Yes, you might not have heard of these two, but this is way before Google came to the picture, kiddos. [url]http://www.informationisbeautiful.net/2009/who-rules-the-social-web/[/url]

Member Avatar
Member Avatar
+1 forum 5

The End.