changed hack to non hack

This commit is contained in:
2021-01-31 17:22:49 +01:00
parent 76923fcbea
commit fc439fdd5d
+2 -2
View File
@@ -14,8 +14,8 @@ const r = new Snoowrap({
const submissionstream = new SubmissionStream(r, {
subreddit: process.env.SUBREDDIT,
limit: process.env.POLL_LIMIT * 1, // small hack to change it from string to a number
pollTime: process.env.POLL_TIME * 1 // same as above
limit: parseInt(process.env.POLL_LIMIT),
pollTime: parseInt(process.env.POLL_TIME)
});
module.exports = {stream: submissionstream, wrap: r};