gerard-botler/README.md

34 lines
662 B
Markdown
Raw Permalink Normal View History

2024-05-30 14:30:25 -04:00
# gerard-botler
discord bot for a friend
this bot uses [discord.py](https://discordpy.readthedocs.io/en/stable/)
# deploy stuff
Clone the repo, and in the root run the container:
```
docker build -t <name> .
docker run --env BOTLER_TOKEN=<token> <name>
```
A sample `docker-compose` looks a little like:
```
botler:
image: python:3.12
build:
context: ./gerard-botler
dockerfile: Dockerfile
environment:
- BOTLER_TOKEN=< your token here (MANDATORY!!!!) >
```
# Python stuff
Source venv:
```
source botler/bin/activate
```
to escape:
```
deactivate
```
more on venvs [here](https://docs.python.org/3/tutorial/venv.html)