Skip to content

Commit

Permalink
Minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Aug 15, 2020
1 parent fac1457 commit 62ff2b6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ build:
# Github Release
# ---------------------------
release:
prerelease: true
prerelease: false
name_template: "Release v{{.Version}}"
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ require('dotenv').config()
const Parser = require('rss-parser')
const Twetch = require('@twetch/sdk')
const parser = new Parser()
// todo: create an env for environment (different urls)
const RSSURL = 'https://offers.tonicpow.com/functions/campaignsFeed/'
let latestURL, account;
const getFeed = async (feedURL, latest) => {
Expand All @@ -14,8 +15,8 @@ const getFeed = async (feedURL, latest) => {
let content = `New Campaign created by ${item.author}: ${item.title}
${item.link}`
let txid = await post(account, content, '', '', '')
console.log('TXID: ', txid)
let txId = await post(account, content, '', '', '')
console.log('txId: ', txId)
await sleep(10000) // recommend to wait 10 seconds between broadcasts
}
latestURL = items[0].link
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "twetch-bot",
"version": "1.0.0",
"version": "1.0.1",
"description": "Automatically post to Twetch on TonicPow events",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 62ff2b6

Please sign in to comment.