Skip to content

Commit e02bfb1

Browse files
committed
refactor: bind dev-config.yml to env
1 parent de2863b commit e02bfb1

3 files changed

Lines changed: 11 additions & 9 deletions

File tree

.env.example

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@ api_ninja_key=
1515
currency_api_key=
1616

1717
# 14 character salt
18-
salt=
18+
salt=
19+
20+
log_channel=
21+
dev_help_forum_id=

config/config.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@ database:
99
password: !ENV "db_pass"
1010
port: !ENV "db_port"
1111

12-
1312
api:
1413
api_ninja: !ENV "api_ninja_key"
1514

1615
guild:
17-
staff_roles: [ 748554755265134635 ]
16+
staff_roles: [748554755265134635]
1817
dev_help_forum: 1020260384638259210
1918
log_channel: 1084008856633491557
2019

config/dev-config.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
bot:
22
prefix: "pph-"
33
token: !ENV "token"
4-
staff_roles: [ 748554755265134635, 809311700560904201, 1064179977639165952 ]
4+
staff_roles: [1062998739012296795]
55

66
database:
77
name: !ENV "db_name"
@@ -14,10 +14,10 @@ api:
1414
api_ninja: !ENV "api_ninja_key"
1515

1616
guild:
17-
staff_roles: [ 748554755265134635, 809311700560904201, 1064179977639165952 ]
18-
dev_help_forum: 1080527620434841731
19-
log_channel: 1084008856633491557
17+
staff_roles: [1062998739012296795] # [748554755265134635]
18+
dev_help_forum: !ENV "dev_help_forum_id"
19+
log_channel: !ENV "log_channel"
2020

2121
logger:
22-
log_channel: 1084008856633491557
23-
log_level: "DEBUG"
22+
log_channel: !ENV "log_channel"
23+
log_level: "DEBUG"

0 commit comments

Comments
 (0)