Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9242331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:33:34+00:00 2026-06-18T08:33:34+00:00

I have a similar question to PHP IRC bot that reads data returned from

  • 0

I have a similar question to PHP IRC bot that reads data returned from a command of the IRC server

I’m using an IRC bot written in Python found widely across the web.

I must send a “NAMES” command to the IRC server, which then returns a list of usernames that are currently in the channel that the bot is in. But I can’t seem to catch that list, NOR get a message back from the server – the bot receives and prints messages sent by other users, but not by himself nor command outputs.

To print the data I’m using the following:

while True:
    data = irc.recv ( 4096 )
    (...)
    print data

To send the NAMES command I tried the following:

irc.send ( 'NAMES #channel\r\n' )

And:

irc.send ( 'PRIVMSG #channel :/names\r\n' )

The complete code at pastebin dot com: http://pastebin.com/xjymEjPu

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:33:35+00:00Added an answer on June 18, 2026 at 8:33 am

    I was just able to see the NAMES list in the script output

    :botty!~botty@durrrrrrrrr JOIN :#channel
    :retribution.sg.as.irchighway.net 353 botty = #channel :botty IlPalazzo-ojiisan @Nibelung 
    :retribution.sg.as.irchighway.net 366 botty #channel :End of /NAMES list.
    :retribution.sg.as.irchighway.net 353 botty = #channel :botty IlPalazzo-ojiisan @Nibelung 
    :retribution.sg.as.irchighway.net 366 botty #channel :End of /NAMES list.
    

    It isn’t the last thing to pop up though. Perhaps you missed it? It was above a set of global notices that were the last lines to return.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've already asked a very similar question but that was using javascript/php - i've
The only similar question I have found is: Insert php boolean into mysql bit
I have asked a similar question about command line arguments in C++ some hours
(Please note that I have seen a similar question on StackOverflow recently, however I
I have a similar question to this: PHP session timeout callback? Basically, I want
I have a question similar to this thread : [throwing-exceptions-from-model-view-controller-in-a-zend-framework-application][1] I have a standard
I know of a similar question that got closed. But this one is from
I'm using phpQuery to parse a some HTML that have a similar to this
I have a similar question to the one I just asked. I'm trying to
I have a similar question to this one However, I have a less strict

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.