Skip to content

Lyon03/PS5_DiscordBot

Repository files navigation

PlayStation Discord Bot

Functions:

  • Track stock notifications (India Only)
  • Create Trade Channels

Basic Setup:

  1. Obtain a Discord bot token from the Discord developer portal
  2. Install all the required modules with:
pip install -r requirements.txt
  1. Create a .env similiar to the .env sample.
  2. Chrome Web Drivers for selenium will also need to be installed from here to take the screenshot of webpages.

Setup for Heroku:

  1. Obtain a Discord bot token from the Discord developer portal
  2. On Heroku, open your App. Click on the Settings tab and scroll down to Buildpacks. Add the following buildpacks that allow us to install Chrome drivers for selenium on Heroku:
Python (Select it from the officially supported buildpacks)
Headless Google Chrome: https://github.com/heroku/heroku-buildpack-google-chrome
Chromedriver: https://github.com/heroku/heroku-buildpack-chromedriver
  1. Within the settings for project in Heroku, create the following Config Vars to configure the following:
DISCORD_BOT_TOKEN
CHROMEDRIVER_PATH = /app/.chromedriver/bin/chromedriver
GOOGLE_CHROME_BIN = /app/.apt/usr/bin/google-chrome

Run script:

python bot.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages