Skip to content

LeStarch/AutoAck

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoAck

IRC bot created for the JPL DARPA XDATA team chatroom.

#gitpush

Pre-requisites

  1. pip install tweepy
  2. pip install nltk*
  3. cp -R .twitter.sample .twitter
  4. edit .twitter file and add in your API key for twitter and other params
  • note that you may need to upgrade distribute, by running easy_install -U distribute

Command line usage:

usage: autoack.py [-h] [-n NICK] [-s SERVER] [-q QUIET] [-p PORT] channel

An IRC bot used to respond to keywords automatically.

positional arguments:
  channel               Channel to connect to.

optional arguments:
  -h, --help            show this help message and exit
  -n NICK, --nick NICK  Username of the bot
  -s SERVER, --server SERVER
                        Server to connect to
  -q QUIET, --quiet QUIET
                        Default number of seconds to stay quiet when told
  -p PORT, --port PORT  Port to use when connecting to the server.

Bot commands:

   AutoAck: learn [key] [value] (learn to say [value] after [key])
   AutoAck: forget [key] (forget user learned keyword [key])
   AutoAck: quiet [seconds] (don't talk for optional number of [seconds])
   AutoAck: speak (override a previous quiet command)
   AutoAck: list (print list of available keywords)
   AutoAck: blame [key] (show user who created [key])
   AutoAck: tweet (send a tweet to the defined twitter account)
   AutoAck: help (print this help message)

Run persistently:

Install supervisord by running [sudo] easy_install supervisord. Then edit the command=... line in the config file supervisord.conf to enter the proper channel, server, port, etc. Then start the daemon by running

supervisord -c ./supervisord.conf

Contributing:

All pull requests, feature requests, bug reports, and questions are welcome! If you want to contribute, fork, branch, commit, and send a pull request! Here is a good tutorial on this git workflow.

About

A clone of the AutoAck bot from JPL Memex team. Note: this fork is abandoned.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%