irc

Why won't TIdIRC connect to channel? Is there a better component?

 ̄綄美尐妖づ 提交于 2019-12-25 05:14:40
问题 I've been struggling with the crap documentation of Google and can't get the program to join the channel even though it connects to the server fine. (It says Connected to server) //On Form Make procedure TForm2.FormCreate(Sender: TObject); begin IdIRC1.Connect(); end; //on connected procedure TForm2.IdIRC1Connected(Sender: TObject); begin ShowMessage('Connected to server'); IdIRC1.Join('#TheChannel', 'password'); end; Once i close the form an error comes up saying: Project raised exception

Launching 'safe' eval()

三世轮回 提交于 2019-12-24 07:38:00
问题 I m making a irc bot https://github.com/mouuff/MouBot I would like the bot to reply the eval() when the message starts with !math but its creating failures if the user enter something like !math exit() and stuff like that 回答1: Don't. It looks like you are trying to create a math parser. Then use a math parser, not a full-fledged I-will-run-any-code-parser. If you are using *nix, you could use a program like bc to do what you want. 回答2: Use the language services to compile it into an AST, walk

Python IRC ChatBot hangs on socket.recv after seemingly random time even though socket.settimeout is 8

一笑奈何 提交于 2019-12-24 07:12:13
问题 Hey so I decided to create an IRC ChatBot whose sole purpose it is to read incoming messages from Twitch Chat and if a giveaway is recognized by a keyword it's supposed to enter the giveaway by sending !enter in Chat. I build the Bot upon this source: https://github.com/BadNidalee/ChatBot. I only changed things in the Run.py so thats the only Code I'm going to post. The unaltered ChatBot does work but it has no reconnect ability and regularly stops receiving data because the socket closes or

IRC related help

£可爱£侵袭症+ 提交于 2019-12-23 23:58:15
问题 Now I have my bot to send message when the bot joins. However how do I make a form that would post data so that the bot will say the message to the channel? Here is my script (Rewamped): <?php set_time_limit(0); $socket = fsockopen("//", 6667) or die(); $msg = $_POST['message']; $pr = $_POST['percentage']; $pr /= 100; fputs($socket,"USER BOT 0 zo :ZH bot\n"); // Set the bots nickname fputs($socket,"NICK BOT1\n"); fputs($socket,"JOIN #bots\n"); while(1) { while($data = fgets($socket, 128)) { /

How do you login with node-irc?

一世执手 提交于 2019-12-23 20:13:10
问题 It is extremely easy to setup and it works fine. But nowhere in the documentation does it say how to /msg nickserv identify <pword> The closest I could find was client.join('#yourchannel yourpass'); or maybe For any commands that there aren’t methods for you can use the send() method which sends raw messages to the server client.send('MODE', '#yourchannel', '+o', 'yournick'); but neither seems to get the job done. 回答1: client.say("nickserv", "identify <pword>"); doesn't work? The API says it

IRC bot in python won't send messages

感情迁移 提交于 2019-12-22 06:25:21
问题 I'm using Phredds Irc bot because I am trying to make a bot for my twitch chat. It connects and responds to pings fine but it won't respond to anything else. I seem to be doing exactly what he did in the pastebin so what is wrong with this? import socket #imports module allowing connection to IRC import threading #imports module allowing timing functions #sets variables for connection to twitch chat bot_owner = 'TwitchPlaysFightingGames' nick = 'MagicalCakeBot' channel = '

IRC bot in python won't send messages

杀马特。学长 韩版系。学妹 提交于 2019-12-22 06:25:03
问题 I'm using Phredds Irc bot because I am trying to make a bot for my twitch chat. It connects and responds to pings fine but it won't respond to anything else. I seem to be doing exactly what he did in the pastebin so what is wrong with this? import socket #imports module allowing connection to IRC import threading #imports module allowing timing functions #sets variables for connection to twitch chat bot_owner = 'TwitchPlaysFightingGames' nick = 'MagicalCakeBot' channel = '

Best way to embed an IRC client in a webpage

我的未来我决定 提交于 2019-12-21 07:55:32
问题 I'm looking for a good, free, preferrably open source, IRC client to be embedded in a web page. The obvious requirements of supporting most browsers, if requiering a plug-in it should be a plug-in that is allready widley deployed and it should not put too much strain on the webserver serving the page. 回答1: Not really a programming question, but Mibbit is quite capable, I've used it for a few different applications, it's always worked well. Note that it will work best if your channel is on one

Node.js JavaScript: Simulate Keypress on Server (Like a Macro)

风流意气都作罢 提交于 2019-12-21 05:22:25
问题 I am trying to get a node.js script to simulate a keypress, such as the up arrow or the a button. Specifically, I am trying to make a clone of Twitch Plays Pokemon. Basically, whenever a command (up, down, left, right, a, b, select, start) is sent via IRC, the server simulates a keypress, which in turn controls a gameboy emulator. So far, I have written this with the IRC module for node.js: var config = { channels: ["#tron"], server: "irc.freenode.net", botName: "wyatt" }; var irc = require(

Trying to write an IRC client but struggling to find a good resource regarding codes and connection protocol

天涯浪子 提交于 2019-12-21 04:42:10
问题 I've looked at the RFC but I am still struggling. I've written a basic client in C# but I cannot find documentation for how to connect properly. Once I connect and transmit NICK and USER information, I need to join a channel. If I do a JOIN straight away, nothing happens - presumably because it's too soon. I have to delay it, but I don't know which command I need to wait for to know it's okay to go ahead. I get stuff like: :irc.fish.net NOTICE AUTH :looking up your hostname... and :irc.fish