Struct cleverbot_io::Cleverbot [] [src]

pub struct Cleverbot {
    pub nick: String,
    // some fields omitted
}

Fields

Methods

impl Cleverbot
[src]

Creates a new Cleverbot instance.

  • user - The API User.
  • key - The API Key.
  • nick - The reference nick, or None.

Sends the bot a message and returns its response. If the nick is not set, it will set it randomly through set_nick_randomly. Returns its response or error string.

  • message - The message to send to the bot.