Improve discord docs (#836)

* add relative path to the terminal

* add troubleshoot message to README

* minor fix

* Update labels.yml
This commit is contained in:
DidierRLopes
2021-10-20 12:51:34 +01:00
committed by GitHub
parent f833493707
commit fb128ee2a4
3 changed files with 9 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ jobs:
with:
mode: minimum
count: 1
labels: "website, bug, build, do not merge, docker, docs, duplicate, enhancement, feat XS, feat S, feat M, feat L, feat XL, help wanted, refactor, tests"
labels: "website, bug, build, do not merge, docker, docs, duplicate, enhancement, feat XS, feat S, feat M, feat L, feat XL, help wanted, refactor, tests, discord"
- uses: mheap/github-action-required-labels@v1
with:
mode: exactly

View File

@@ -98,6 +98,12 @@ See more in [CONTRIBUTING.md](discordbot/CONTRIBUTING.md).
## Bugs
If when trying to run the discord bot you receive the following error
```
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
```
The solution is to browse to `Applications/Python 3.x` and double-click `Install Certificates.command`.
If an error occurs, use `DEBUG=True` on the [config_discordbot.py](gamestonk_terminal/config_discordbot.py) file.
Then, report what is the issue with the console output attached either by:

View File

@@ -8,9 +8,8 @@ env_files = [f for f in os.listdir() if f.endswith(".env")]
if env_files:
load_dotenv(env_files[0])
# Path to the terminal
GST_PATH = os.path.join("~", "Documents", "GamestonkTerminal")
sys.path.append(GST_PATH)
# Relative path to the terminal
sys.path.append("..")
# https://discord.com/developers/applications/
DISCORD_BOT_TOKEN = os.getenv("GT_DISCORD_BOT_TOKEN") or "REPLACE_ME"