This is an example to get you started making bots for hnschat
git clone https://github.com/hnschat/bot.git hnschat-bot
cd hnschat-bot
npm install
- Open your js console while on hnschat.
- Type
hnschat.session
to get your session id. - Type
hnschat.domain
to get your desired domain id. - Type
hnschat.conversaion
to get the current conversation id. (Optional) - Type
hnschat.keys
to get your key pair for e2ee. - Fill in the values in
config.sample.json
and rename toconfig.json
. - Launch the bot with
node bot.js
. - Typing
!hns
in a channel which you and the bot are in will make the bot reply with the current HNS price.