Revert to env variable for discord token

This commit is contained in:
Agatha Rose 2018-08-01 22:13:07 +03:00
parent 174b37017f
commit 160b8fb248
4 changed files with 3 additions and 7 deletions

2
Cargo.lock generated
View File

@ -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)",

View File

@ -1,6 +1,6 @@
[package]
name = "rustcord"
version = "0.8.1"
version = "0.8.2"
authors = ["EvilDeaaaadd <EvilDeaaaadd@protonmail.com>"]
[dependencies]

View File

@ -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.