A Discord bot that monitors and reports stock news from Robinhood or Yahoo Finance to a specific discord channel every 10min.
Requirements
- Python 3.8.5
- Fork/Clone the repository
git clone git@github.com:Dkirk25/news_bot.git
- Setup Firebase Project
- Need to generate a private key in Firebase project.
- Set the variable to the path of the private_key.json
- Run
scripts/setup.sh
to create the missing project files.env
and your firebase key JSON. Your env should contain the variables listed in the example below
# Example ENV
# Discord
TOKEN=
CHANNEL_ID=
BOT_NAME=
# Firebase
GOOGLE_APPLICATION_CREDENTIALS=
# Robinhook
USERNAME=
PASSWORD=
MFA=
#Switch between Robinhood and Yahoo News
USE_ROBINHOOD=N or Y (Default)
#Switch between Firebase and Local Txt File
USE_FIREBASE=N or Y (Default)
DATABASE_FILE= example_db.txt (This can be blank if you are using Firebase)
# Poll data every 10 minutes
POLL_INTERVAL=600
- Test run your project locally with
python main.py
- complete setup/installation
- run
scripts/start.sh
.add
- Add stock to list of "Watched Stocks".remove
- Remove stock to list of "Watched Stocks".list
- View all stocks being watched.help
- Shows list of bot commands.purge
- Remove all messages that are not from the bot
- Discord
- Firebase
- Robinhood Unofficial API (pyrh) · https://github.com/robinhood-unofficial/pyrh
View the requirements.txt