git clone https://github.com/drooling/store-card-service/
cd store-card-service
pip install git+https://github.com/Pycord-Development/pycord
pip install python-dotenv
pip install pymysql
pip install selenium
You can host one on your own or use XAMMP
Once you have access to a MySQL server you need to create the table and database
CREATE DATABASE IF NOT EXISTS `tragedy`;
USE `tragedy`;
CREATE TABLE `amazon` (
`user` BIGINT(18) NOT NULL UNIQUE,
`premium` BOOLEAN NOT NULL,
`plan_expiration` DATETIME NOT NULL
);
After this you can create the .env file with the following variables:
mysqlServer=#Address of MySQL server or localhost
mysqlPassword=#Password of root user
token=#Discord bot token
And finally run the bot with
python src/init.py