Depenencies Needed to run:
- discord
- python-dotenv
Install these with pip install -r requirements.txt
Start the bot with python main.py
Source file is current as of 08/22/2024 12:00 AM EDT
Thanks to Claire (claireconklin@gmail.com) for aiding in updating the list
Made with assistance from:
- https://github.com/indently/discord_tutorial_2024/tree/main
- https://github.com/elijahwe/wknc-bot
Running with Docker:
- Create the image from the Dockerfile with
sudo docker build -t baby-name-bot .
. This will create a docker image with the namebaby-name-bot
- Run the container with
sudo docker run --name running-baby-name-bot -d baby-name-bot
. This will run the image from step 1 in a container namedrunning-baby-name-bot
.
Stopping the container:
- Stop the container with
sudo docker container stop running-baby-name-bot
. If this is not the correct container, usesudo docker ps -a
to view the running containers.
Removing image and container:
- After completing the steps in Stopping the container, run
sudo docker rm running-baby-name-bot
to remove the container. - run
sudo docker image remove baby-name-bot
to remove the image.
Updating the bot.
- Add in the strings.
- Generate input JSON files with
python jsongenerator.py
- Go into
first.json
,middle.json
, andlast.json
in the editor of your choice and replace all instances of\n
with