irc

This python code is not solving equations

心已入冬 提交于 2021-02-11 12:02:58
问题 I have a chat bot for an Instant messenger and I am trying to make a math solver for it but it can't send the solution of equation to the Instant messenger, it sends equation instead. If someone from Instant messenger sends "solve: 2+2", this program should send them "4" not "2+2". Main problem: if (parser.getPayload().lower()[:6]=="solve:"): parser.sendGroupMessage(parser.getTargetID(), str(parser.getPayload()[7:])) output: it's sending same input again not the answer of equation Test: I

How to use fsockopen (or compatible) with SOCKS proxies in PHP?

和自甴很熟 提交于 2020-01-24 09:55:12
问题 I've coded a non-evil, non-spammy IRC bot in PHP, using fsockopen and related functions. It works. However, the problem is that I need to support proxies (preferably SOCKS5, but HTTP is also OK if that is somehow easier, which I doubt). This is not supported by fsockopen . I've gone through all search results for "PHP fsockopen proxy" and related queries. I know of all the things that don't work, so please don't link to one of them. The PHP manual page for fsockopen mentions the function

IRC library for Android (From 2.3.3 to 4.0.3 )? [closed]

穿精又带淫゛_ 提交于 2020-01-13 05:51:51
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Is there any android-compatible (from 2.3.3 to 4.0.3) IRC library for Android ? As of yet I am unable to find one, and any assistance is appreciated! 回答1: Try http://www.yaaic.org They have the souce in GitHub https://github.com/pocmo/Yaaic/ 来源: https://stackoverflow.com/questions/11131853/irc-library-for

Send a private message to an IRC bot

北城以北 提交于 2020-01-06 23:50:29
问题 I have a php script to join a channel on this IRC server: irc.worldnet.net Thanks to the server response I can say that I joined the channel successfully, and that the bot is in the users list. However, this command: MSG bot_nickname hello my friend ! issues an 'msg: unknown command' response. An when I send this line: PRIVMSG bot_nickname : hello my friend ! There is no response from the bot (I don't have any error message anyway). Is there something wrong with the commands I send ? Here is

Send a private message to an IRC bot

若如初见. 提交于 2020-01-06 23:49:16
问题 I have a php script to join a channel on this IRC server: irc.worldnet.net Thanks to the server response I can say that I joined the channel successfully, and that the bot is in the users list. However, this command: MSG bot_nickname hello my friend ! issues an 'msg: unknown command' response. An when I send this line: PRIVMSG bot_nickname : hello my friend ! There is no response from the bot (I don't have any error message anyway). Is there something wrong with the commands I send ? Here is

Getting a “TypeError: an integer is required” in my script

家住魔仙堡 提交于 2020-01-04 14:18:38
问题 I am trying to make a botnet using Python, for educational reasons, and I keep getting the following error: TypeError: an integer is required Here is my script: import os import socket import random import string # string.letters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' a = random.choice(string.letters) b = random.choice(string.letters) c = random.choice(string.letters) d = random.choice(string.letters) e = random.choice(string.letters) name = 'bot' + a + b + c + d + e network

Getting a “TypeError: an integer is required” in my script

天大地大妈咪最大 提交于 2020-01-04 14:18:10
问题 I am trying to make a botnet using Python, for educational reasons, and I keep getting the following error: TypeError: an integer is required Here is my script: import os import socket import random import string # string.letters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' a = random.choice(string.letters) b = random.choice(string.letters) c = random.choice(string.letters) d = random.choice(string.letters) e = random.choice(string.letters) name = 'bot' + a + b + c + d + e network

Perl Irssi scripting: How to send msg to a specific channel?

时间秒杀一切 提交于 2020-01-01 07:18:06
问题 I need to establish this single task with Irssi Perl script. I have my own channel and I want to sent msg directly to that channel in certain scenarios. My experience with Perl is quite limited so I haven't got this one. I am confused how to manage different chatnets and channels in Irssi Perl scripting. So how I can send message for example channel #testchan@Quakenet for example? Test one: server->command("^MSG $info{'#testchan'} $info{'Test message.'}"); Test two (tuto about scripting): sub

Python IRC bot won't join

笑着哭i 提交于 2019-12-30 06:55:34
问题 I get the error message :irc.evilzone.org NOTICE AUTH : * Looking up your hostname... :irc.evilzone.org NOTICE AUTH : * Found your hostname (cached) PING :7091A8FB :irc.evilzone.org 451 JOIN :You have not registered :irc.evilzone.org 451 PRIVMSG :You have not registered server = "irc.evilzone.org" # Server port = 6667 #port connect through IRC standard is :(6667 or 9999) irc = socket.socket ( socket.AF_INET, socket.SOCK_STREAM ) irc.connect ( ( server, port ) ) print irc.recv ( 4096 ) nick =

IRC Reading Sockets

可紊 提交于 2019-12-25 05:25:19
问题 I am making a bot and have most everything ready except input. I want to have something like this: "!test word" and have it output something like "word2". Here is the code that I am using to output data. I would also like to find out my username (opername). Sorry if the indenting is off on the page; it's just fine on my end. while True: data = irc.recv ( 4096 ) if data.find ('PING' ) != -1: irc.send ('PONG ' + data.split() [ 1 ] + '\r\n' ) if data.find ('!quit') != -1: irc.send ('QUIT\r\n')