Skip to content

Commit 4a11f2d

Browse files
committed
get ready for heroku
1 parent 103256a commit 4a11f2d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Diff for: Procfile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Worker: nodemon index.js

Diff for: index.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ const commandHandler = require('./handlers/commandHandler')
77
const reactionHandler = require('./handlers/reactionHandler')
88
const eventCleanup = require('./helpers/eventCleanup')
99

10-
const token = process.env.TOKEN
11-
1210
const everyMidnight = new RecurrenceRule()
1311
everyMidnight.hour = 5
1412
everyMidnight.minute = 1
@@ -69,4 +67,4 @@ bot.on('messageReactionAdd', async (reaction, user) => {
6967
}
7068
})
7169

72-
bot.login(token)
70+
bot.login(process.env.TOKEN)

0 commit comments

Comments
 (0)