Skip to content

Commit

Permalink
Change to use envvar
Browse files Browse the repository at this point in the history
  • Loading branch information
Tkaixiang committed Aug 10, 2023
1 parent 8d5965f commit 9864400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import spuser from './Commands/spuser'
import autoCompleteHandler from './Utils/autoCompleteHandler'

require('dotenv').config()
const host = '0.0.0.0'
const host = process.env.APP_HOST ? process.env.APP_HOST : '0.0.0.0'
const currentVersion = 21
const commandMapping: any = {
'sphelp': { sub: false, vars: 1, handler: sphelp },
Expand Down

0 comments on commit 9864400

Please sign in to comment.