This is a chat bot for Wireâ„¢ chat app, developed in Node.JS on top of Wire Bot Node SDK
Bot hackerNews: https://wire.com/b/hn
- Use as hackernews - send you a chat message where the latest news | types, 'top', 'new', 'best', 'ask', 'show', 'job'
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>',
}
}
- Then you can start the bot
node hackerNews/bot.js