34 lines
662 B
Markdown
34 lines
662 B
Markdown
# 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)
|