Add discord bot token in configs

This commit is contained in:
thecosmos
2020-04-17 15:40:07 +05:30
parent d2b2e5d4a8
commit 7456c71bdc
2 changed files with 3 additions and 0 deletions

View File

@@ -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_ID"] = 490732332240863233 # Discord client ID.
app.config["DISCORD_CLIENT_SECRET"] = "" # Discord client secret. app.config["DISCORD_CLIENT_SECRET"] = "" # Discord client secret.
app.config["DISCORD_REDIRECT_URI"] = "" # Redirect URI. 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) discord = DiscordOAuth2Session(app)

View File

@@ -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_ID"] = 490732332240863233 # Discord client ID.
app.config["DISCORD_CLIENT_SECRET"] = "" # Discord client secret. app.config["DISCORD_CLIENT_SECRET"] = "" # Discord client secret.
app.config["DISCORD_REDIRECT_URI"] = "" # Redirect URI. 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) discord = DiscordOAuth2Session(app)