aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index cd67ae0..9ee6949 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -33,12 +33,13 @@
//! #[macro_use] extern crate serenity;
//!
//! use serenity::client::Client;
+//! use serenity::framework::standard::StandardFramework;
//! use std::env;
//!
//! fn main() {
//! // Login with a bot token from the environment
//! let mut client = Client::new(&env::var("DISCORD_TOKEN").expect("token"));
-//! client.with_framework(|f| f
+//! client.with_framework(StandardFramework::new()
//! .configure(|c| c.prefix("~")) // set the bot's prefix to "~"
//! .on("ping", ping));
//!