Skip to content

Commit

Permalink
Add discord bot token in configs
Browse files Browse the repository at this point in the history
  • Loading branch information
weibeu committed Apr 17, 2020
1 parent d2b2e5d commit 7456c71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ app.secret_key = b"random bytes representing flask secret key"
app.config["DISCORD_CLIENT_ID"] = 490732332240863233 # Discord client ID.
app.config["DISCORD_CLIENT_SECRET"] = "" # Discord client secret.
app.config["DISCORD_REDIRECT_URI"] = "" # Redirect URI.
app.config["DISCORD_BOT_TOKEN"] = "" # Required when you want to use User.add_to_guild method.

discord = DiscordOAuth2Session(app)

Expand Down
2 changes: 2 additions & 0 deletions docs/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ in exchange for fetching user's details and display them on web page.
app.config["DISCORD_CLIENT_ID"] = 490732332240863233 # Discord client ID.
app.config["DISCORD_CLIENT_SECRET"] = "" # Discord client secret.
app.config["DISCORD_REDIRECT_URI"] = "" # Redirect URI.
app.config["DISCORD_BOT_TOKEN"] = "" # Required when you want to use User.add_to_guild method.
discord = DiscordOAuth2Session(app)
Expand Down

0 comments on commit 7456c71

Please sign in to comment.