Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ use serenity::async_trait;
use serenity::prelude::*;
use serenity::model::channel::Message;
use serenity::framework::standard::macros::{command, group};
use serenity::framework::standard::{StandardFramework, CommandResult};
use serenity::framework::standard::{StandardFramework, Configuration, CommandResult};

#[group]
#[commands(ping)]
Expand All @@ -62,7 +62,7 @@ impl EventHandler for Handler {}
#[tokio::main]
async fn main() {
let framework = StandardFramework::new().group(&GENERAL_GROUP);
framework.configure(|c| c.prefix("~")); // set the bot's prefix to "~"
framework.configure(Configuration::new().prefix("~")); // set the bot's prefix to "~"

// Login with a bot token from the environment
let token = env::var("DISCORD_TOKEN").expect("token");
Expand Down