1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! Crate for creating chat bots for VK (VKontakte) communities.
//!
//! > **note:** this crate requires nightly Rust because of Rocket.
//!
//! You can see [`Core`] documentation for information on how to
//! define bot behavior. In particular, make sure to take a look
//! at [`Core::on`] first.
//!
//! # Examples
//! Examples are available in the
//! [`examples`](https://github.com/u32i64/vk-bot/tree/master/examples)
//! folder:
//! - [`basic.rs`](https://github.com/u32i64/vk-bot/blob/master/examples/basic.rs)
//! - [`keyboard.rs`](https://github.com/u32i64/vk-bot/blob/master/examples/keyboard.rs)
//!
//! # Basic example
//! The following example is taken from
//! [`examples/basic.rs`](https://github.com/u32i64/vk-bot/blob/master/examples/basic.rs).
//! It is not tested as a doc test because [`Bot::start`] never returns.
//!
//! ```ignore
#![doc(include = "../examples/basic.rs")]
//! ```

#![feature(external_doc)]
#![feature(proc_macro_hygiene, decl_macro)]
#![deny(missing_docs)]

#[macro_use]
extern crate rocket;

#[macro_use]
extern crate log;

pub use crate::{
    bot::Bot,
    context::Context,
    core::{Core, Event, Handler, Tester},
};

pub mod bot;
pub mod context;
pub mod core;
pub mod keyboard;
pub mod request;
pub mod response;