From 1fc8dc3e93587c9cef2dd8f075c19aeed9f8a560 Mon Sep 17 00:00:00 2001 From: Nelson Dane <47427072+NelsonDane@users.noreply.github.com> Date: Fri, 5 Apr 2024 10:03:34 -0400 Subject: [PATCH] update readme instructions --- README.md | 5 +++-- guides/discordBot.md | 11 +++++------ guides/playwrightWindows.md | 8 -------- 3 files changed, 8 insertions(+), 16 deletions(-) delete mode 100644 guides/playwrightWindows.md diff --git a/README.md b/README.md index 6aa8fef1..09b1ef0e 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,9 @@ DISCLAIMER: I am not a financial advisor and not affiliated with any of the brok All brokers: separate account credentials with a colon (":"). For example, `SCHWAB_USERNAME:SCHWAB_PASSWORD`. Separate multiple logins with the same broker with a comma (","). For example, `SCHWAB_USERNAME:SCHWAB_PASSWORD,SCHWAB_USERNAME2:SCHWAB_PASSWORD2`. + +Some brokerages require `Playwright` to run. On Windows, the `playwright install` command might not be recognized. If this is the case, run `python -m playwright install` instead. + ### Fidelity Made by yours truly using Selenium (and many hours of web scraping). @@ -171,8 +174,6 @@ To get your TOTP secret, follow this [guide](guides/schwabSetup.md). Note 1: Think or Swim must be enabled on all accounts. To enable, go to `Trade` > `Trading Platforms` > `Learn how to enable thinkorswim`. Then press `Continue` and expand the `thinkorswim Access Agreement` and accept it. Then press `Continue` again. Then select the checkbox for all available accounts and press `Submit`. It may take a day or two for the accounts to be enabled. -Note 2: If you are using Windows, you may need to install playwright manually. See [this guide](guides/playwrightWindows.md) for more information. - ### Tradier Made by yours truly using the official [Tradier API](https://documentation.tradier.com/brokerage-api/trading/getting-started). Consider giving me a ⭐ diff --git a/guides/discordBot.md b/guides/discordBot.md index 91fe5683..e53f028a 100644 --- a/guides/discordBot.md +++ b/guides/discordBot.md @@ -6,11 +6,10 @@ In order to use this bot in Discord, you have to create a bot account and invite 3. Click on `Bot` in the left sidebar, then give it a name and profile picture if you want. 4. Disable `Public Bot`. 5. Under `Privileged Gateway Intents`, enable `Message Content Intent`. -4. Scroll down to `Bot Permissions` and select `Send Messages`. -5. Click on `OAuth2` in the left sidebar, then `URL Generator`. Then scroll down to `OAuth2 URL Generator`. -6. Under `Scopes` select `bot`. Then underneath that in `Bot Permissions` select `Send Messages`. -7. Copy the link in the `Scopes` section and paste it into your browser. Select the server you want to add the bot to and click `Authorize`. -8. Click on `Bot` in the left sidebar. Under `Token`, click `Reset Token`. Copy the new token and paste it into your `.env` file as `DISCORD_TOKEN`. -9. To get the Channel ID, go to `Advanced` in Discord settings, then turn on `Developer Mode`. Then right click on the channel for the bot and click `Copy ID`. Paste the ID into your `.env` file as `DISCORD_CHANNEL`. If you want to turn off `Developer Mode`, you can do so, but it isn't necessary. +6. Click on `OAuth2` in the left sidebar, then `URL Generator`. Then scroll down to `OAuth2 URL Generator`. +7. Under `Scopes` select `bot`. Then underneath that in `Bot Permissions` select `Send Messages` and `Read Message History`. +8. Copy the link in the `Scopes` section and paste it into your browser. Select the server you want to add the bot to and click `Authorize`. +9. Click on `Bot` in the left sidebar. Under `Token`, click `Reset Token`. Copy the new token and paste it into your `.env` file as `DISCORD_TOKEN`. +10. To get the Channel ID, go to `Advanced` in Discord settings, then turn on `Developer Mode`. Then right click on the channel for the bot and click `Copy ID`. Paste the ID into your `.env` file as `DISCORD_CHANNEL`. If you want to turn off `Developer Mode`, you can do so, but it isn't necessary. If you need a more visual guide, one user found [this guide](https://www.writebots.com/discord-bot-token/) helpful. diff --git a/guides/playwrightWindows.md b/guides/playwrightWindows.md deleted file mode 100644 index 660e9cd2..00000000 --- a/guides/playwrightWindows.md +++ /dev/null @@ -1,8 +0,0 @@ -## How to Install Playwright on Windows -Brokers like Schwab use playwright to render their website. This guide will show you how to install playwright on Windows since the recommended `playwright install` command doesn't work on Windows. - -1. Install [Node.js](https://nodejs.org/en/download/). -2. Close and reopen your terminal. Run `node -v` and `npx -v` to make sure NodeJS is installed correctly. -3. Run `npx playwright install` to install playwright. - -If you have any issues, please check the [playwright docs](https://playwright.dev/docs/intro#installing-playwright).