PandoraBotIRC  1.0.0
An irc bot that acts as a Pandora chatter bot
pbirc::cb::PandoraBot Class Reference

Class representing a connection to a PandoraBot chatterbot. More...

#include <PandoraBot.hpp>

Inheritance diagram for pbirc::cb::PandoraBot:
pbirc::cb::ChatterBot

Public Member Functions

 PandoraBot ()=delete
 Default ctor deleted. Must provide a botid for PandoraBot to function. More...
 
 PandoraBot (std::string const &botid)
 PandoraBot constructor. More...
 
std::string think (std::string const &msg)
 Function for talking with the Pandora Bot. More...
 
- Public Member Functions inherited from pbirc::cb::ChatterBot
 ChatterBot ()=default
 
virtual ~ChatterBot ()=default
 

Detailed Description

Class representing a connection to a PandoraBot chatterbot.

Call PandoraBot::think with a message, and it will return a reply.

Example Usage

A word on BotIDs

Bot IDs are found from www.pandorabots.com You can browse through bots on that website (there are many.) When you find a bot you want to use, click on it, and the botid will be in the url.

BotIDs are 16 characters in length. Using an incorrect BotID will result in undefined behavior.

Constructor & Destructor Documentation

pbirc::cb::PandoraBot::PandoraBot ( )
delete

Default ctor deleted. Must provide a botid for PandoraBot to function.

pbirc::cb::PandoraBot::PandoraBot ( std::string const &  botid)

PandoraBot constructor.

Parameters
[in]botidAn ID representing which Pandora Bot to connect with

Member Function Documentation

std::string pbirc::cb::PandoraBot::think ( std::string const &  msg)
virtual

Function for talking with the Pandora Bot.

Parameters
msgA message to send to the bot
Returns
The bot's reply

Implements pbirc::cb::ChatterBot.


The documentation for this class was generated from the following files: