Questions tagged [irc]

1

votes
0

answer
99

Views

Python IRC bot will only send 1 message

I'm writing a Twitch bot and it will only send one message to server. When executing code below 'Connected' shows up in Twitch chat, 'Testing' does not. import socket HOST = 'irc.chat.twitch.tv' PORT = 6667 NICK = 'mybot' PASS = 'oauth:mytoken' CHANNEL = 'mychannel' def send_message(msg): s.send(byt...
PileOfMeatballs
1

votes
1

answer
321

Views

Java Twitch IRC Bot

So I'm working on a basic Twitch Bot for my channel and the code is as follows: Config.java import java.io.IOException; import org.jibble.pircbot.IrcException; import org.jibble.pircbot.NickAlreadyInUseException; public class Config { private static final String OAUTH = 'MYOAUTHHERE'; private static...
mewi
1

votes
1

answer
263

Views

Trying to send Message TO Twitch Chat

I have the bot already set up to where it reacts to certain commands like using text-to-speak and playing mp3 clips when chat uses the commands, however, I can not figure out how to get to get it to respond by SENDING BACK a message INTO chat when, say, someone says 'Hello Fuzzy'. I get the TypeErr...
ChrisCrad
1

votes
2

answer
265

Views

Simple Java IRC Client

I am trying to write an IRC client that is very simple, with the hopes of later expanding it. At this point I have two classes written in java that are supposed to work together and were copied from the Oracle tutorial. What I am trying to do is have the EchoClient connect to a host on a certain por...
brothman
1

votes
1

answer
134

Views

Threads persisting with irc.bot.SingleServerIRCBot (using with twitch)

What is the correct way to send a disconnect signal to a thread containing a SingleServerIRCBot? I am instantiating bots that connect to twitch with import threading import irc.bot class MyBot(irc.bot.SingleServerIRCBot): ... bot = MyBot(...) threads = [] t = threading.Thread(target=bot.start() thr...
Myles Hollowed
1

votes
0

answer
50

Views

PHP stuck on “waiting for localhost”

Before getting into more detail, I just wanted to clarify that I am a pretty fresh, new PHP programmer. I am not even sure if I set it all up correctly to be honest. Please bear with me. I am having troubles with programming a pretty basic IRC Twitch.tv Bot. Whenever I try to open/refresh the page,...
vel0city
1

votes
1

answer
150

Views

Threading / Linq Class list Issue

I've written a very complex multi-server IRC bot recently, and have encountered an issue.. I have stripped down the code as much as I could which can be viewed here. My issue is that when I call the Disconnect() the connection is voided instead of disconnecting and closing the given server. It also...
Xavier
1

votes
2

answer
255

Views

Plugin permissions in an IRC Bot

My friend and I are writing an C# IRC Bot that will allow users to extend it's capabilities via plugins. We need it so that each command will be able to have its own permissions. So that only a user on a specific level or above could execute the command. We had a hard time deciding how to do this. T...
Kevin Mark
1

votes
1

answer
70

Views

F/OSS (or just free-as-in-beer) Visual Studio communication add-ins?

Our team is growing, but we're also growing specialized. We've already been using ticketing/bug tracking/case management software for years--as well as IM clients informally--but as another engineer and I were discussing, it'd be nice to have an IRC-like communication system. Basically, it'd be nice...
Marc Bollinger
1

votes
2

answer
457

Views

Does IRC support internationalized room names?

Does IRC support internationalized (UTF-8) room names? How? A pointer to documentation or a spec would be welcome.
flybywire
1

votes
1

answer
684

Views

PHP and IRC and Shells

I'm working with a closed community site (PHP-based) of about 100 users, and one of the features we've implemented is an ajax shoutbox that works as a 'chatroom' on the site frontpage when users logged in. The dev team is using a private irc server for collaboration, and in one channel we're running...
gorzan
1

votes
2

answer
421

Views

IRC using NetworkStream - buffer fills and line gets chomped

var buffer = new byte[short.MaxValue]; var splitString = new string[] {'\r\n'}; while (_tcpClient.Connected) { if (!_networkStream.CanRead || !_networkStream.DataAvailable) continue; var bytesRead = _networkStream.Read(buffer, 0, buffer.Length); var stringBuffer = Encoding.ASCII.GetString(buffer,...
carlsb3rg
1

votes
1

answer
1.2k

Views

Help needed coding an IRC client in Delphi 2010 using Indy Components

Im trying to code a basic irc client in Delphi 2010 using Indy components. Im able to connect to my irc server (unrealircd) using sample A below. After connecting I have many procedures that should perform actions when it receives a private message, ping, ctcp, channel modes etc. but they never reac...
Alex
1

votes
2

answer
4.3k

Views

Building an irc client in Java

I'm trying to write an ircBot in Java for some practice. I am using this sample code as the base. I'm trying to figure out how to get it to read in text from my console so I can actually talk to people with the bot. There's the one while loop that takes in the input from the ircserver and spits it o...
ted
1

votes
2

answer
805

Views

pcre expression for irc nicknames?

Hey guys, I'm having a few issues with using PCRE to make a irc nickname format correctly. I'm not good with PCRE, and I'd love some suggestions from those of you who do use PCRE / regex. :) I'm currently using this expression: /^([^A-Za-z]{1})([^A-Za-z0-9-.]{0,32})$/ I'm using it as such: preg_repl...
Billy Ewing
1

votes
3

answer
256

Views

Python - Stripping timestamps and username from line in file

I'm writing a script that will print a random line of text from a file into an XCHAT channel. So far it works fine, but I want to add one last bit of functionality. I have logs with, for example, 'Oct 23 12:07:59 (nickname> ' appearing before every line of text. I just want to print the parts of...
guy
1

votes
1

answer
738

Views

PHP - IRC Private Message Function Help

For some reason my bot wont private message a % of people on the IRC Channel. Here is my script: Here is the log on what I recieve: :[email protected] PRIVMSG Rawr30566 :VERSION I have even tried removing the Post data and replaced this part with this: $msg = $_POST['message']; With $msg =...
Ray
0

votes
0

answer
6

Views

How does an irc daemon like Charybdis work?

I am pretty new to irc, and am poking around in it to try and understand it. I am running CentOS 7 on a VM, and have installed charybdis-4.1.1 and atheme-7.2.10-r2, using this marvellous guide. However, while the guide does a fantastic job of telling me how to install it, it doesn’t really tell m...
cluelessguy
1

votes
1

answer
12.2k

Views

urllib2.HTTPError: HTTP Error 500: Internal Server Error

if data.find('!exploits') != -1: nick = data.split('!')[ 0 ].replace(':','') results = api.exploitdb.search(arg) sck.send('PRIVMSG ' + chan + ' :' + ' Results found: %s' % results['total'] + '\r\n') for exploit in results['matches'][:5]: sck.send('PRIVMSG ' + chan + '' + '%s:' % (exploit['descriptio...
SourD
1

votes
3

answer
229

Views

What is the proper way to implement a line based network worker class

I'm building an IRC client, and want an IRC independant networking class that just sends and receives lines between the client and server. Sending lines is OK, but I'm at a loss for a good way of implementing a listener thread. All the methods I've tried work, but have flaws that I can't get around....
carlsb3rg
1

votes
2

answer
94

Views

Matching and extracting data in string

Can someone help me (and change the title, I couldn't think of one)? I need to look for a command with Pircbot and I need it to be able to read a command like this: !online user And I need to do it with this: something.equalsIgnoreCase('online'); I have no idea how to do it with it being able to re...
Evan Darwin
1

votes
1

answer
347

Views

Irc-bot using twisted with periodical printing

The problem I'm having is really quite small but I've been trying to figure it out for two days and I've gotten nowhere. Basically I'm building an IRC bot using twisted and yes there are many examples on the web but none of them handle what you do when you want to send messages periodically. I want...
Julmust
1

votes
2

answer
395

Views

SQLite SELECT not working in Ruby when used with regex capture string, but works with string literal

I am using the following regex to capture to match an IRC PART message: :(?[a-zA-Z\d
Mark Szymanski
1

votes
1

answer
2.8k

Views

Problem with IRC socket connection

Error occurs during JOIN and USER, it tells me I need to 'Register first'. The three: PASS, NICK work correctly (probably). Any idea how is this possible? I've followed the relevant RFC, http://tools.ietf.org/html/rfc1459#section-4.1 code: #include #include #include #include #include #pragma c...
pawelbartnicki
1

votes
1

answer
1.2k

Views

SmartIRC4Net won't connect/shows no activity

I'm making a bot in c#, using the SmartIRC4Net library (http://www.meebey.net/projects/smartirc4net/). If you aren't familiar with that library, feel free to tell me an alternative. I used it because that is the most supported library I could find. I read the 'test' example bot, and tried to strip...
1

votes
2

answer
62

Views

Override previously used functions

I'm in the process of making an irc bot with PHP. While developing, I want to be able to dynamically load and unload classes/functions. Mind you, the PHP is keep-alive. ex: Main File: class stuff { function stuff() { echo 'this'; } function replaceFunction() { remove(stuff); add(stuff); } } $stuff =...
Korvin Szanto
1

votes
1

answer
288

Views

Commands in Python IRC bot built with oyoyo

I have recently found the oyoyo Python IRC framework and as it looks decent from my newbie perspective, I have chosen to build an IRC bot with it (Twisted seems a bit daunting). I have looked at the example, but I am not sure how I would implement more commands. Would I just have a lot of if stateme...
user1008773
1

votes
1

answer
167

Views

Getting stdin while connected to a server Python

I'm connecting to an IRC server but while it's sitting waiting for data I'd like the program to be able to grab input from the terminal and then relay it to the server, so essentially say JOIN #foobar and the program send JOIN #foobar. The current code looks like: def receive(self): while True: raw...
sheppardzw
1

votes
1

answer
768

Views

PHP IRC Bot - Wait for 001

Okay. I know the problem, and I'll try to describe it, but I cannot for the life of me find the answer, to the question. Okay, so, my bot will connect to the server fine. But this specific server you have to wait for this: :vervet.foonetic.net 001 Eve :Welcome to the Foonetic IRC Network [email protected]*...
Kinz
1

votes
2

answer
2.1k

Views

Can't execute /msg resend command in Nickserv

Never received confirmation email form Nickserv IRC registration - can't execute the /msg resend command in Nickserv to resend the conf. Any ideas? Haven't used IRC in years. I get 'invalid command'. Using Adium for OS X.
ThePlague
1

votes
1

answer
581

Views

IRC Server configuration possibilities

I need to know a couple of things, concerning IRC servers that I couldnt directly find out over google (or werent clear enough for me to be sure if it actually works) I'm working at a larger community site, and wanted to deliver an in-page chat. Since it would be a nice feature to let people access...
Katai
1

votes
1

answer
185

Views

NullPointer exception on call to (.write socket data)

I'm writing a simple IRC bot to try to learn more about Clojure, using standard Java sockets and a loop to read/parse the data, but I get a nullpointer when I attempt to send the JOIN message after the MOTD end message for some reason. Here's my code.. (use 'clojure.java.io '[clojure.string :as s :o...
gdude2002
1

votes
2

answer
4.5k

Views

Python socket errno -3 on run

Upon running and testing a few IRC bots on a old laptop running Lucid puppy 5.2 after installing Python 1.6 (the only python .pet i could find), every few times i run the python file, i get this strange error: Traceback (most recent call last): File 'bot.py!, line 77, in irc.connect ( (irc_network,...
Midareru
1

votes
1

answer
163

Views

wiki links (irc bot)

I've created an IRC Bot for http://www.rsplayers.wikia.com/ that successfully connects to the channel and has some basic commands, but I've been stuck on this one part which allows you to link around the site. Wiki links are basically [[Link]], nothing fancy. Currently commands can only be done in...
Hairr
1

votes
1

answer
173

Views

Extracting text from IRC logs

I'd like to extract texts from irc logs. I have regular IRC log from irssi like this: 00:12 -!- Barbora [[email protected]] has joined #post.sk 00:12 -!- mirinda [[email protected]] has quit [Broken pipe] 00:12 -!- rogue1 [[email protected]] has jo...
Kamil
1

votes
1

answer
1k

Views

How to send IRC messages every few seconds using twisted?

The twisted documentation provides an example of how to create an IRC bot Here is the code I currently have (derived from the above example): from twisted.words.protocols import irc from twisted.internet import protocol from twisted.internet import reactor class Bot(irc.IRCClient): def _get_nickname...
Niyaz
1

votes
1

answer
290

Views

Sorting IRC users by rank and alphabetically - Java Comparator

I'm trying to create a very simple IRC client in java for fun and have just started dealing with channel specific user lists. I'm using the following code to sort the user list, but it doesn't sort it exactly as it should. IRC hierarchy goes like this: ~ & @ % + (qaohv), and if someone doesn't have...
Timr
1

votes
1

answer
155

Views

Is there a way to ignore the MOTD from an IRC client?

I'm making an IRC bot for a game to connect the in-game chat to an arbitrary IRC network/channel. Some users complain that the bot takes too much time to load, and it's because of the bot having to get the MOTD. Is there a way to ignore the MOTD? The bot is using the LuaIRC library for IRC protocol...
user1698699
1

votes
1

answer
144

Views

Python: socket connection still open

I've read some questions on this topic here, but i couldn't get an simple answer. I'll provide some code so it can be easier. import socket irc = socket.socket ( socket.AF_INET, socket.SOCK_STREAM ) irc.connect((network, port)) # Do the rest of the connection (set nick, user, join chan) # Okay, now...
pasadinhas
1

votes
1

answer
295

Views

Python Irc-Bot EOF from client on socket close and shutdown

i've done an IRC-Bot in Python. I wanted to create a shutdown command. It look like this: self.SendMessage('Bye!', self.connectedchannel) # Send bye to the connected channel self.connection.shutdown(socket.SHUT_RDWR) # Shutdown the socket self.connection.close() # Close the socket sys.exit() # Exit...
Thor77

View additional questions