IRC bot features

I am learning Python and want to start a small project. It seems that the creation of IRC bots is a popular project among beginners, so I decided that I would implement it. Obviously, there are basic functionalities, such as the ability to connect to the server and connect to the channel, but what are the good features that are usually included in bots? Thanks for your ideas.

+4
source share
5 answers

If this is not solely for educational experience, you should simply use the infrastructure for basic functions.

However, here are some of the things that bot in my home IRC channel:

  • Select one item from the list of options.
  • Display random entry from linux fortunes file
  • Display an arbitrary set of words from an Emooks spook file
  • Check each line from the user and show a quote from The Big Lebowski if it is similar enough (this is probably a little my channel specific :))
  • Check if the link was previously mentioned, and say who / when (we all read the same RSS feeds and often duplicate links).
  • Conduct a survey
  • Get this quote from our internal QDB
  • Check if the link was sent to Reddit, and give the appropriate link to the Reddit stream, if so. If a Reddit link is hosted, provide a direct link instead
  • Track the last time a given nickname was in the channel, and the last time they spoke
  • Message queue for an offline nickname that is automatically sent to the channel when they join.
  • Use Google Translate to translate this phrase.
  • Send this line to our Twitter channel.
  • Choose a random user and write (not a good idea depending on how unmanageable your channel is)
  • Pull out a summary of the word from Wikipedia and show it along with a link to the full article
  • Display information about any published Youtube link (video title, length, sender, votes, comments, etc.).
+2
source

I'm also in the process of writing a bot in node.js. Here are some of my goals / features:

  • map '@' so that the bot detects the last URI in the message history and uses the w3 html verification service
  • Customize the little things with a call! ask, asks a question with three tips, it is possible to load custom questions based on the category
  • get weather forecast using weather [zip / name]
  • Connect jseval command to evaluate javascript, same for python and perl and haskell
  • seen team reporting the last time the bot "saw" a person online.
  • translate a command to translate a string of language X into a string of language Y
  • map dict to dictionary service
  • map wik for wiki service
+1
source

Again, this is a completely personal suggestion, but I would really like to see an eggdrop rewritten in Python.

Such a project can use Twisted to provide basic IRC interaction, but then it will need support for add-on scripts.

It would be great if you could create lightweight IRC robot functionality using python scripts instead of TCL.

+1
source

It is very subjective and completely depends on where the bot will be used. I am sure that others will have good suggestions. But no matter what you do, please do not request users arbitrarily. And do not periodically spam the main chat.

0
source

Do a Google search to get a library that implements the IRC protocol for you. Thus, you only need to add features, this is enough to bother you.

Common Functions:

  • Search from wiki or google
  • Notify people about project / release updates
  • Leave a message
  • Spamming Toy
  • Choose a topic
  • Classify messages
  • Search from channel logs
0
source

All Articles