forked from sorceress/rustcord
Revert to env variable for discord token
This commit is contained in:
parent
174b37017f
commit
160b8fb248
|
@ -455,7 +455,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "rustcord"
|
||||
version = "0.8.1"
|
||||
version = "0.8.2"
|
||||
dependencies = [
|
||||
"rand 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serenity 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "rustcord"
|
||||
version = "0.8.1"
|
||||
version = "0.8.2"
|
||||
authors = ["EvilDeaaaadd <EvilDeaaaadd@protonmail.com>"]
|
||||
|
||||
[dependencies]
|
||||
|
|
|
@ -32,11 +32,7 @@ impl EventHandler for Handler {
|
|||
|
||||
fn main() {
|
||||
// Login with a bot token from the environment
|
||||
// let mut client = Client::new(&env::var("DISCORD_TOKEN").expect("token"), Handler)
|
||||
let mut client = Client::new(
|
||||
"NDcwMzUwMjMzNDE5OTA3MTI5.Djnj8Q.zWccOBceV0Xf3MB2OjL0MpqZsgg",
|
||||
Handler,
|
||||
).expect("Error creating client");
|
||||
let mut client = Client::new(&env::var("DISCORD_TOKEN").expect("token"), Handler).expect("Error creating client");
|
||||
client.with_framework(
|
||||
StandardFramework::new()
|
||||
.configure(|c| c.prefix("OwO ").case_insensitivity(true))
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue