All checks were successful
Build and Push Docker Image / build (push) Successful in 23s
39 lines
1.1 KiB
Markdown
39 lines
1.1 KiB
Markdown
# girl cock inator
|
|
|
|
it finds twitter links and turns them into girlcock links for better embed
|
|
|
|
## easiest way
|
|
|
|
docker image published at `git.cesium.one/kira/cockinator:latest` only needs `DISCORD` passed as a variable with your token
|
|
|
|
### examples
|
|
|
|
`docker run -e "DISCORD=TOKEN_HERE" git.cesium.one/kira/cockinator:latest`
|
|
|
|
```yml
|
|
services:
|
|
bot:
|
|
restart: unless-stopped
|
|
image: git.cesium.one/kira/cockinator
|
|
environment:
|
|
- DISCORD=TOKEN_HERE
|
|
```
|
|
|
|
## easy way
|
|
|
|
this also works in not docker with regular node.js, and pass it the `DISCORD` variable however you like
|
|
|
|
`npm i && DISCORD=TOKEN_HERE node index.js`
|
|
|
|
## other ways
|
|
|
|
you can build the image yourself with `docker build . -t cockinator` to then run with `docker run cockinator`
|
|
|
|
you can also build the image with docker-compose, by replacing `image: git.cesium.one/kira/cockinator` with `build: .`
|
|
|
|
## the config file
|
|
|
|
for the full functionality of the bot, you can copy `config.json.default` to `config.json` and fill it in.
|
|
|
|
it'll need to be in the main directory, and for docker that means mounting it as a volume with `-v ./config.json:/app/config.json`
|