Skip to content

Commit f93652a

Browse files
authored
Merge pull request #6 from OnekiDevs/fix-token
fix load env
2 parents ecd85e0 + 5dacb6d commit f93652a

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
# 2.7.3
6+
7+
## Fix
8+
9+
- **env** loaded correctly
10+
511
# 2.7.2
612

713
## features

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "offdjs",
3-
"version": "2.7.2",
3+
"version": "2.7.3",
44
"type": "module",
55
"description": "oneki framework for discord.js",
66
"main": "lib/index.js",

src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ if (verbose)
6363
)
6464
client.options.root = process.env.OFFDJS_ROOT || cmd.opts().root
6565
if (verbose) console.log('Root:', client.options.root)
66-
const token = process.env.OFFDJS_ROOT || cmd.opts().token
66+
const token = process.env.DISCORD_TOKEN || cmd.opts().token
6767
if (!token) {
6868
console.error('Token is required')
6969
process.exit(1)

0 commit comments

Comments
 (0)