Skip to content

Commit 9b88405

Browse files
authored
Merge pull request #26 from carlos3g/master
[FEAT] uses dotenv
2 parents 12b93b0 + f424bdd commit 9b88405

File tree

7 files changed

+20
-2
lines changed

7 files changed

+20
-2
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
REPORT_NUMBER=""

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules/
22
**/session.json
3+
*.env

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
require('dotenv').config();
12
const { Alice } = require('./src/Alice');
23
const build = require('./src/build');
34

package-lock.json

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"dependencies": {
1717
"axios": "^0.21.1",
1818
"cheerio": "^1.0.0-rc.5",
19+
"dotenv": "^10.0.0",
1920
"google-it": "^1.6.2",
2021
"jssoup": "0.0.12",
2122
"qrcode-terminal": "^0.12.0",

src/commands/report.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const { chattools } = require('../utils');
22

3-
const myID = chattools.userID('+55 11 96734-3809');
3+
const myID = chattools.userID(process.env.REPORT_NUMBER);
44
const strings = {
55
defaultMessage: `
66
uso: _!report [--flag] [descrição]_

src/commands/suggest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const { chattools } = require('../utils');
22

3-
const myID = chattools.userID('+55 11 96734-3809');
3+
const myID = chattools.userID(process.env.REPORT_NUMBER);
44
const defaultMessage = `
55
uso: _!suggest [--flag] [sugestão]_
66

0 commit comments

Comments
 (0)