From 0fa2dc050bb889f18082e717357ceb1a4c29d6f2 Mon Sep 17 00:00:00 2001 From: driftywinds Date: Mon, 12 May 2025 11:33:34 +0000 Subject: [PATCH] damn --- README.md | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fe930a8..b26e61b 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ My vibe code for the marketplace bay bot -## How to use: - +## 1. How to use bare metal on linux : - - Download the repo, cd into the directory - Choose which bot you want to run - ``` @@ -23,8 +23,27 @@ python3 .py - press ```ctrl + b + d``` and profit - to go back into the console at any time run ```tmux a``` -## P.S. Special configuration for the discord bot ```DSboy.py```: - +### P.S. Special configuration for the discord bot ```DSbot.py```: - You need these permissions scoped in the Discord developer portal before you add the bot to a server. -![permissions](https://i.postimg.cc/YqrTy8ct/permissions.png) \ No newline at end of file +![permissions](https://i.postimg.cc/YqrTy8ct/permissions.png) + +## 2. How to use with Docker Compose : - +- Download the ```compose.yml``` file from the docker directory +- download ```example.env```, change it accordingly and rename it to ```.env``` +- edit the line for container_name and image in the ```compose.yml``` file to use the image you want to run from one of these - + + ```ghcr.io/driftywinds/mpbot:latestDS``` + + ```ghcr.io/driftywinds/mpbot:latestDM``` + + ```ghcr.io/driftywinds/mpbot:latestGT``` +- run ```docker compose up -d``` + +## 3. How to build a docker image : - +- download / clone the repo +- move / copy the respective Dockerfile to the root of the repo +- run ```docker build . -f Dockerfile-GTbot.py -t your-image-name:tag``` +- go into the docker directory and edit the ```compose.yml``` to use the image you built +- run ```docker compose up -d``` \ No newline at end of file