irc

How do i program a simple IRC bot in python?

允我心安 提交于 2019-12-20 08:09:48
问题 I need help writing a basic IRC bot that just connects to a channel.. is anyone able to explain me this? I have managed to get it to connect to the IRC server but i am unable to join a channel and log on. The code i have thus far is: import sockethost = 'irc.freenode.org' port = 6667 join_sock = socket.socket() join_sock.connect((host, port)) <code here> Any help would be greatly appreciated. 回答1: It'd probably be easiest to base it on twisted's implementation of the IRC protocol. Take a look

IRC Python Bot: Best Way [closed]

◇◆丶佛笑我妖孽 提交于 2019-12-17 22:17:13
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I want to build a bot that basically does the following: Listens to the room and interacts with users and encourages them to PM the

How to write and send text to mIRC in C#/Win32?

旧街凉风 提交于 2019-12-17 19:47:26
问题 In a previous question, I asked how to send text to Notepad. It helped me immensely. For part 2, here's a simplified version of the same applied mIRC: [DllImport("User32.dll", EntryPoint = "FindWindow")] public static extern IntPtr FindWindow(String lpClassName, String lpWindowName); [DllImport("user32.dll", EntryPoint = "FindWindowEx")] public static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow); [DllImport("User32.dll")] public

Raw IRC output nick and message parsing via Regex

喜夏-厌秋 提交于 2019-12-14 03:37:34
问题 I am trying to parse the Twitch IRC chat into a more readable way. I have never used Regex and am not sure how to go about this (even after reading tons of tutorials.) This is the raw output: :nick!nick@nick.tmi.twitch.tv PRIVMSG channel : I would like two regex's to parse the nick and message to be used individually, thanks! 回答1: Regex is not your solution for this problem. If you really want to go down this road (but don't - keep reading!), then you can use something like this for the

How do I run a node IRC bot?

三世轮回 提交于 2019-12-14 03:15:49
问题 I'd like to run this IRC Eliza bot but I lack some fundamental understanding of how to do it. https://github.com/isaacs/node-eliza I don't know anything about IRC or how to connect to them. Could someone explain how I connect to this bot? Do I need to host it remotely? Is there a way to run an IRC client locally and connect to it locally? Currently the program just runs without error but does nothing. I understand node.js, but I seem to missing some fundamentals in understanding IRC on how to

MASM str and substr?

别说谁变了你拦得住时间么 提交于 2019-12-13 16:26:15
问题 I'm currently coding an irc bot in asm I have already done this once in C++, so I know how to solve most problems I encounter, but I need a substr()[*] function like the one seen in C++. I need the substr function to receive the server name from a PING request so I can respond with the corresponding PONG response But I don't know how to implent it in MASM, I heard of something called macroassembling, It seems substr is often used in those functions Does anyone have any idea how I can get my

Twisted Python IRC Bot - How to listen for commands while bot is running a command?

做~自己de王妃 提交于 2019-12-13 16:18:57
问题 I have an IRC bot that I wrote using the Twisted Python IRC protocols. I want to be able to run commands while still allowing the bot to listen and execute other commands simultaneously. For example, let's say I have command that will print a large text file to a channel. If I wanted to stop the command while it was running by entering "!stop" into the channel, how could I accomplish this? Or let's say I want to do "!print largefile" in one channel and then go to a different channel and type

PHP IRC Bot creating infinite loop

北城余情 提交于 2019-12-13 05:28:17
问题 Hello fellow developers of Stack Overflow! I recently got back into web development (although I wasn't too good at it before) with PHP being my weapon of choice. PHP seems to have changed since I was out of it, and combine that with the fact that I have never used PHP sockets, before lead to a disastrous first attempt to create an IRC bot (I am on an IRC channel where bot developing is big, and I want to integrate it into my website. Writing it in php also seems like a fun challenge). It

smartirc4net listens forever, can't exit thread

独自空忆成欢 提交于 2019-12-13 04:15:39
问题 I have a IRC bot that uses the smartirc4net library. I have run into an issue where the bot is listening for commands and I want the thread it is running on to exit. The Listen() command blocks forever. If I use ListenOnce() I can put the call inside of a While(!ShouldExit) loop, but I have to wait for the bot for something to trigger the ListenOnce() . protected void irc_OnConnected(object sender, EventArgs e) { irc.Login(configuration.IRCNick, configuration.IRCNick); while (!

Building an IRC bot in Java

*爱你&永不变心* 提交于 2019-12-12 08:40:02
问题 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. 回答1: SilverTrout has many, but simple plugins. Similar approach as PircBot, only pluggable. IRClib IRC-API - Mavenized . I haven't tried. Seems to be quite well designed. Documentation and