-
Notifications
You must be signed in to change notification settings - Fork 588
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add logging and dotenv to example 07
- Loading branch information
Zeyla Hellyer
committed
Oct 29, 2017
1 parent
e694766
commit d50b129
Showing
4 changed files
with
46 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ Cargo.lock | |
.idea/ | ||
|
||
*.iml | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# This declares an environment variable named "DISCORD_TOKEN" with the given | ||
# value. When calling `kankyo::load()`, it will read the `.env` file and parse | ||
# these key-value pairs and insert them into the environment. | ||
# | ||
# Environment variables are separated by newlines and must not have space | ||
# around the equals sign (`=`). | ||
DISCORD_TOKEN=put your token here | ||
# Declares the level of logging to use. Read the documentation for the `log` | ||
# and `env_logger` crates for more information. | ||
RUST_LOG=debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,11 @@ name = "07_sample_bot_structure" | |
version = "0.1.0" | ||
authors = ["my name <[email protected]>"] | ||
|
||
[dependencies] | ||
env_logger = "~0.4" | ||
kankyo = "~0.1" | ||
log = "~0.3" | ||
|
||
[dependencies.serenity] | ||
features = ["cache", "framework", "standard_framework"] | ||
path = "../../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters