Skip to content

bitoven-dev/jsforumnotif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Joystream Forum Post Notification Tool

Many thanks to imOnlineMonitor for providing example with polkadot chain (Kusama).
This script will notify any new post on Joystream forum to Telegram group/channel/chat of your choice.
Current demo is https://t.me/jsforumnotification

Getting Started

Requirements

  1. Joystream Node
  2. Yarn and Nodejs

Run

  1. git clone https://github.com/bitoven-dev/jsforumnotif
    cd jsforumnotif
    yarn install
    
  2. Replace yourtoken on const token = 'yourtoken'; with your Telgram bot token. You can get it by talking to @botfather
    You can edit fast using sed (change yourowntoken)
    sed -i -e 's/yourtoken/yourowntoken/g' index.js

  3. Replace yourchatid on const chatid = 'yourchatid'; with your group/channel the bot will notify into. How to get chatid
    You can edit fast using sed (change yourownchatid)
    sed -i -e 's/yourchatid/yourownchatid/g' index.js

  4. Optional. Change value let lastnotif = 242;. Don't put it too far from current post id though.

  5. Run node index.js

Notes

I've just started to learn JS, so any suggestion or PR is greatly appreciated 😁

About

Joystream Forum Post Notification

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published