Skip to content
Merged
Changes from 1 commit
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
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ 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 "~"
let framework = StandardFramework::new()
.group(&GENERAL_GROUP)
.configure(|c| c.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