diff options
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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)); //! |