Skip to content

Commit

Permalink
Update minor description
Browse files Browse the repository at this point in the history
  • Loading branch information
weibeu committed Jul 15, 2020
1 parent cd1b501 commit f9f77d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ 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.
app.config["DISCORD_REDIRECT_URI"] = "" # URL to your callback endpoint.
app.config["DISCORD_BOT_TOKEN"] = "" # Required to access BOT resources.

discord = DiscordOAuth2Session(app)

Expand Down Expand Up @@ -63,6 +63,8 @@ if __name__ == "__main__":
app.run()
```

For an example to the working application, check [`test_app.py`](tests/test_app.py)


### Requirements
* Flask
Expand Down
4 changes: 2 additions & 2 deletions docs/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,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.
app.config["DISCORD_REDIRECT_URI"] = "" # URL to your callback endpoint.
app.config["DISCORD_BOT_TOKEN"] = "" # Required to access BOT resources.
discord = DiscordOAuth2Session(app)
Expand Down

0 comments on commit f9f77d9

Please sign in to comment.