Skip to content

Thumperrr/PandoraBotIRC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PandoraBotIRC

An IRC bot that acts as a Pandora chatter bot. To be entered in the cplusplus.com monthly community competition

####Planned features

  • Respond to channel messages with chatter bot replies
  • Use server/port/nick/channel from command line arguments (not hard coded)
  • Keep track of who is talking to the bot -- Be able to run multiple conversations at once.
  • Implement !BotID command -- Change the PandoraBot you're talking to
  • Implement !BotQuit command -- Exit gracefully
  • Implement !BotHalt command -- Temporarily stop the bot from replying to anything to keep the channel quiet. Puts the bot in an idle state.
  • Implement !BotResume command -- Resumes the bot after !BotHalt has been called.
  • Implement !BotTalk command -- Starts a conversation between a user and the bot. The bot will ignore a user until they have typed !BotTalk, then it will start talking to them.
  • Implement !BotStop command -- Stops a conversation between the user and the bot.
  • Implement !BotHelp command -- Sends a list of all possible commands
  • Connect to multiple channels (OPTIONAL)

####Documentation Doxygen documentation is hosted on this repository's gh-pages. Click here to go to it.

Building

####OS x 10.8+ and Linux

  • Clone the git repository.
  • Run the CMake GUI.
  • Enter the directory you cloned the repo to in the source code field.
  • Enter where you want to build the binaries (Usually in the same directory as the source code field)
  • Select configure, choose Unix Makefiles. (Note: At this point, you may select which compiler you want to use to build the project. You will have to have SFML built properly with the compiler you choose.)
  • Select Generate (assuming there have been no errors).
  • From the terminal in the directory you chose to build the binaries, run make.

####Other You're on your own for now.

####Dependencies

  • Requires SFML 2.0
  • Requires Boost 1.50.0 or greater.

SFML must be built properly with the compiler you choose to build the project with.

Boost must be in the default location on your system (somewhere CMake can find it -- /usr/local/lib or /opt/local/lib, etc.)

  • Tested working on OS x - clang 3.3
  • Tested working on Linux - gcc 4.7.2

Usage

####Command Line PandoraBotIRC is designed to be a command line tool. Four parameters must be supplied to pbirc when ran; server, port, nick, channel. Example: ./pbirc irc.freenode.net 6667 pandoraBot, cplusplus will start the bot on irc.freenode.net, port 6667, with nick "pandoraBot" in the channel "#cplusplus".

####Talking to the bot In an IRC chat, to begin a conversation with the bot, type the !BotTalk command. The bot should greet you. Now, anything you type the bot will consider directed toward it, and will respond promptly. To stop a conversation with the bot, type !BotStop.

The bot is capable of having conversations with multiple users at the same time. Using !BotTalk will not interfere with another users's conversation.

####Other Commands

  • Typing "!BotQuit" will terminate the bot.
  • Typing "!BotHalt" will put the bot in an idle state, temporarily suspending it from responding to anyone.
  • Typing "!BotResume" will reverse the effects of !BotHalt
  • Typing "!BotID " will change the bot you are talking to to the bot specified by the parameter ID. This command only works if you have already started a conversation with the bot by typing !BotTalk. For more on BotIDs, see the PandoraBot reference.
  • Typing "!BotHelp" will tell you all of the commands the bot handles.

About

An IRC bot that acts as a Pandora chatter bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages