badcf00d / nvidia-discord-bot

A stock tracker for rtx cards

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nvidia-discord-bot

A stock tracker for rtx cards

Linux setup

sudo apt install python3-pip python3-dev
git clone https://github.com/badcf00d/nvidia-discord-bot.git
cd nvidia-discord-bot/
pip3 install -r requirements.txt
# Place your bot token in token.txt, or BOT_TOKEN environmental variable
# Place your channel ID in channels.txt, or BOT_CHANNELS environmental variable
python3 stock.py

You may also want to setup a systemd service for it:

sudo nano /etc/systemd/system/nvidia-discord-bot.service
--------------------------------------------------------------------------
[Unit]
Description=Nvidia Discord Bot
Wants=network-online.target
After=network-online.target
StartLimitIntervalSec=0

[Service]
Type=simple
Restart=always
RestartSec=30
User={a user that has access to the pip packages you installed above}
ExecStart=/usr/bin/python3 ~/nvidia-discord-bot/stock.py

[Install]
WantedBy=multi-user.target
--------------------------------------------------------------------------
sudo systemctl enable nvidia-discord-bot
sudo systemctl start nvidia-discord-bot

Docker Setup

token.txt

Just a text file with your bot token on the first line

channels.txt

  • Uses the format: <channel id>,<receive debug messages>,<colon-seperated list of locales>;, e.g:
123123123123123,true,en-gb:FR:DE;
234234234234234,false,en-gb;
345345345345345,false,en-gb:FR;

About

A stock tracker for rtx cards

License:BSD 2-Clause "Simplified" License


Languages

Language:Python 98.8%Language:Dockerfile 1.1%Language:Procfile 0.2%