feat(release): Complete example compose
This commit is contained in:
parent
9df4aa5e32
commit
1c2a6facc0
3 changed files with 6 additions and 5 deletions
4
examples/.env.example
Normal file
4
examples/.env.example
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
DISCORD_API_KEY=<YOURKEY>
|
||||
DISCORD_CLIENT_ID=<YOURCLIENTID>
|
||||
|
||||
DB_PATH=data/data.db
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
services:
|
||||
bot:
|
||||
container_name: "pnp_scheduler_bot"
|
||||
image:
|
||||
image: neintonine/pnp-scheduler:release
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./data:/app/data
|
||||
env_file:
|
||||
- ../.env.example
|
||||
- .env
|
||||
|
|
@ -1,11 +1,9 @@
|
|||
import dotenv from "dotenv";
|
||||
import path from "node:path";
|
||||
import * as fs from "node:fs";
|
||||
import {dot} from "node:test/reporters";
|
||||
|
||||
type DiscordEnvironment = {
|
||||
token: string;
|
||||
guildId: string;
|
||||
clientId: string;
|
||||
}
|
||||
|
||||
|
|
@ -17,7 +15,6 @@ export class Environment {
|
|||
get discord(): DiscordEnvironment {
|
||||
return {
|
||||
token: process.env.DISCORD_API_KEY ?? '',
|
||||
guildId: process.env.DISCORD_GUILD_ID ?? '',
|
||||
clientId: process.env.DISCORD_CLIENT_ID ?? '',
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue