ThraxBot.Commands.demonstration.2.mp4
-
Open command prompt navigate to project directory and run.
python setup_script.py
-
Create a discord server for testing.
-
Create Discord Bot on Discord Developer Portal copy its TOKEN and invite to your testing server. Refer to video below
how_to.mp4
-
Create
.env
file and add following lines.TOKEN = "add discord bot token here from previous step" FORM = "https://docs.google.com/forms/d/1JXLxeXnhAwWBADlC_yS9_IQY9gwb1Jg8RM79mAoLSVM/edit?usp=drivesdk"
-
Run
main.py
to start application.
-
Make sure you are in the directory where your
Dockerfile
is located. -
Open a terminal and run the following command to build the Docker image.
docker build -t thrax_bot .
This command will build the Docker image using the
Dockerfile
present in the current directory (.
). -
After the build completes, you can run your container with the following command:
docker run -dp 3000:3000 thrax_bot
This command will run the container, mapping port 3000 of the container to port 3000 of your host machine (adjust ports as necessary).
-
Your app should be available at http://localhost:3000 if your Discord bot exposes any services on that port.