Skip to content

Commit

Permalink
Merge pull request #2 from MELLIFERA-Labs/feature/telegram-bot
Browse files Browse the repository at this point in the history
feature: doc & data store
  • Loading branch information
RuslanGlaznyov authored Apr 13, 2022
2 parents 4eea9fd + 0910b74 commit 6df8edb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea/
node_modules/
config.js
config.js
data/*.json
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,22 @@ Install dependencies

Before run, store a `config.js` file in the project folder. The config sample can be find in `config.sample.js`

AND

Add to data folder `telegram.json` file with default params `{ "last_notified_proposal_id": 0 }`

RUN with cron:

example:
```
*/30 * * * * cd /user/Haimdallbot && npm run run:tlg --silent >> /user/haimdallbot.log
```
if use `nvm` do alias

```
sudo ln -s "$(which node)" /usr/bin/node
sudo ln -s "$(which npm)" /usr/bin/npm
```
[cron examples](https://crontab.guru/examples.html)


Expand Down
Empty file added data/.gitkeep
Empty file.
1 change: 0 additions & 1 deletion data/telegram.json

This file was deleted.

0 comments on commit 6df8edb

Please sign in to comment.