irc

mIRC Search for multiple words in text file

六眼飞鱼酱① 提交于 2019-12-12 03:47:34
问题 I am trying to search a text file that will return a result if more than one word is found in that line. I don't see this explained in the documentation and I have tried various loops with no success. What I would like to do is something similar to this: $read(name.txt, s, word1|word2|word3) or even something like this: $read(name.txt, w, word1*|*word2*|*word3) I don't know RegEx that well so I'm assuming this can be done with that but I don't know how to do that. 回答1: The documentation in

Python3 webserver communicate between threads for IRC bot

浪尽此生 提交于 2019-12-12 03:38:49
问题 I've read a lot of documentation about Threading, Queuing, Pooling etc. but still couldn't figure out how to solve my problem. Here's the situation : I built a python3 Django application that's served by cherrypy. The application is basically another IRC client. When I use the GUI to run my code the first time, an IRC bot is launched through a deamon Thread and listens to events. My problem is the following : how do I send data to that thread (and my bot), for instance to tell him to join a

How to receive a message with TidIRC in Delphi?

家住魔仙堡 提交于 2019-12-12 02:57:30
问题 I have the following code so far: procedure TForm1.FormCreate(Sender: TObject); begin FIRC.Host:= '192.168.1.48'; FIRC.Port := 61289; FIRC.Username:= 'test'; FIRC.Nickname:= 'Test'; FIRC.RealName:= 'TEst'; FIRC.Connect; FIRC.Join('#Test'); end; And it will connect fine, but I cannot find on google how to actually receive a message on the channel. How can that be done? 回答1: TIdIRC has OnPrivateMessage and OnNotice events (amongst many other events). 来源: https://stackoverflow.com/questions

IRC DCC Receive files

我是研究僧i 提交于 2019-12-11 23:17:52
问题 I premise that I have already read the IRC RFC. The only thing that I know: when a user sends me a File i receive a CTCP like this: DCC SEND < filename > < ipaddress > < port > < filesize > Where IPAddress must be converted from long to standard IP format. After conversion how can I start receiving file? I stopped here: Dim sendMatch As Match = Regex.Match(b_data, "DCC SEND (.*?) (\d+) (\d+) (\d+?).?$") If (sendMatch.Captures.Count > 0) Then Dim send_filename As String = sendMatch.Groups.Item

Perform tasks periodically with python irc library

て烟熏妆下的殇ゞ 提交于 2019-12-11 20:12:14
问题 Is there a way to automate periodic tasks: like sending messages to other users or channels, etc. using python irclib or twisted-based youmomdotcom python irc bot. Example of irclib based irc client: from irc import client class OurIRCClient(client.SimpleIRCClient): def __init__(self): client.SimpleIRCClient.__init__(self) import sys client = OurIRCClient() try: client.connect("irc.freenode.net", 6667, myUserId) print "connected to irc.freenode.net" except: sys.exit(-1) "error: coouldn't

(Delphi 2009) idIRC, MDI, and problems with hanging

空扰寡人 提交于 2019-12-11 11:53:23
问题 I'm working on an IRC client. I've hit a majors snag which, up until not I've been able to work around. I'll show code below. What's I'm having a problem with is creating MDI child windows within the event handlers of idIRC. For example, if I want to create a new channel form (FrmChannel), I can accomplish this easily by calling it's create procedure when I catch the '/join' command. However, if I want to do it the right way, and wait until I've actually joined the channel, and receive

IRC blowfish encryption mode?

左心房为你撑大大i 提交于 2019-12-11 11:07:54
问题 I've been doing some tests with this tool : http://crypto.hurlant.com/demo/CryptoDemo.swf and been trying to match blowfish results obtained from Mirc + blowfish (from what used to be fish.secure.us v1.30). I cannot for the life of me find what mode it is using... Nothing matches.. Does anyone know what mode it uses ?? 回答1: It simply uses ECB mode, but the base64 encoding is done in an odd way - each block of 32 bits of ciphertext is independently encoded into 6 base64 characters. 回答2:

How do I issue a quit message with perl's POE::Component::IRC?

拟墨画扇 提交于 2019-12-11 05:16:29
问题 I have a simple IRC bot using POE::Component::IRC. It was only when I was attempting to make it gracefully handle SIGINT by quitting with a useful message that I found that I can't make it quit with any message at all, ever whether as part of a signal handler or just a normal call to quit. Let's say I've got the session created something like this: POE::Session->create( inline_states => { irc_disconnected => \&bot_reconnect, irc_error => \&bot_reconnect, irc_socketerr => \&bot_reconnect,

mIRC bot - copy/paste lines in 2 channels

柔情痞子 提交于 2019-12-11 04:52:21
问题 I’m a noob in mirc scripting, and I need some help. there’s 2 irc channels. let’s call then #channel1 and #channel2; There’s 2 bots. One is mine, let’s call him “mybot” (my bot is in both channels). The other bot is from a third person, let’s call him “otherBot”; What I need is… let me make an example to better explain. a) in #channel1 some user type: [14:38:48] <@someuser> !user xpto At this time, “mybot” is in both channels. he reads the command “!user*” and copy/paste it in #channel2,

Update UI item from another class and thread

无人久伴 提交于 2019-12-11 04:20:01
问题 I've seen other similar questions here but I can't seem to find a solution for my specific problem. I'm writing a Twitch Bot and need to update a listbox on the main form when a message is received from the server. I made a custom event in my TwitchBot.cs class called OnReceive that looks like this: public delegate void Receive(string message); public event Receive OnReceive; private void TwitchBot_OnReceive(string message) { string[] messageParts = message.Split(' '); if (messageParts[0] ==