Skip to content

Saleh7/hackerNewsBot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hackerNews for Wireâ„¢

This is a chat bot for Wireâ„¢ chat app, developed in Node.JS on top of Wire Bot Node SDK

Examples

Bot hackerNews: https://wire.com/b/hn

Image hackerNews

Main Feature

  • Use as hackernews - send you a chat message where the latest news | types, 'top', 'new', 'best', 'ask', 'show', 'job'

Installation

git clone https://github.com/Saleh7/hackerNewsBot.git
npm install
  • Create service key and certificate:
cd hackerNewsBot
openssl genrsa -out server.key 4096
openssl req -new -key server.key -out csr.pem
openssl x509 -req -days 7300 -in csr.pem -signkey server.key -out server.crt
openssl rsa -in server.key -pubout -out pubkey.pem
  • Write your own configuration file (hackerNews/config.js) is a good starting point for building your own.
getOptions() {
  return {
      port: 8051,
      key: 'server.key',
      cert: 'server.crt',
      storePath: 'store',
      auth: '<put your auth token here>',
  }
}

Start ..

  • Then you can start the bot
node hackerNews/bot.js

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 88.3%
  • Protocol Buffer 10.4%
  • Shell 1.3%