Skip to main content

a rather simple echo irc bot to stand as a simple example of how this could be done.

Project description

background

On Feb 13th I joined the PyLadies folks (along with a friend, @btanaka) to learn about how to make an IRC bot.

There was no formal presentation, but it was a great opportunity to get together with friends and hack. The notes from the event can be found here, with relevant code found at this GitHub repo.

I can understand why Rachel would have started with a repository that wouldn’t have required a single sudo or pip command: K.I.S.S . There is overhead associated with teaching pip/virtualenv/etc. when people don’t know what that is.

After perusing the code in that repo, however, I thought that there had to be a simpler way. Back in December the question of making an IRC bot came up in the BayPIGgies mailing list, and Guido hisself answered with one word: Twisted.

I thought I ought to look at what it would take, and turns out that it isn’t much; I made this repo/package so that people could grab the source, run setup.py develop, and hack/execute to their heart’s content.

I hope someone finds it useful.

installation

If you’re going to hack, clone this repo:

hg clone https://bitbucket.org/smcquay/ircbot
cd ircbot
python setup.py develop

And then continue to add code to ircbot.IRCBot.privmsg.

If you’re not going to hack and just want a simple echo server:

pip install ircbot

execution

Once you’ve installed the bot, you can invoke it as such:

ircbot -p 6668 -n echobot python utah-python

or consult ircbot -h.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ircbot-0.1dev.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file ircbot-0.1dev.tar.gz.

File metadata

  • Download URL: ircbot-0.1dev.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ircbot-0.1dev.tar.gz
Algorithm Hash digest
SHA256 b17e2a6b9401d150cce40752cd696b192144181b4a279479fe8c79e3f186e404
MD5 2c56a4c9fbb21ac70214df97f5108d2c
BLAKE2b-256 8115993562a72868ad86f8f91f0a13a538b9245e24fe99780912ab2595b4f27d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page