Skip to content
This repository has been archived by the owner on Jun 12, 2020. It is now read-only.

Changement de la base de donnée LokiJS par NoDB #18

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
abd668b
Yolo
Xstoudi May 11, 2018
37f3620
Travis -> Docker build
Xstoudi May 11, 2018
0a3ef37
Remove exit when there is no test
Xstoudi May 11, 2018
ad25867
Fix Dockerfile
Xstoudi May 11, 2018
a89e4c7
Fix link verifier
Xstoudi May 11, 2018
7257347
Fix vulnerabilities
Xstoudi May 11, 2018
66e92d7
Old channel name
Xstoudi May 11, 2018
a17b68a
Fix
Xstoudi May 11, 2018
4283891
Remove links rule
Xstoudi May 12, 2018
1776c98
Merge pull request #2 from ES-Community/nice-bot
Xstoudi May 12, 2018
42050d0
Listen `ready` event once, Fix #3
DeltaEvo Jun 11, 2018
ca0de78
Merge pull request #5 from DeltaEvo/patch-1
Xstoudi Jun 12, 2018
79ec314
add subscribe command
Westixy Jun 12, 2018
d9a209b
add save system
Westixy Jun 12, 2018
e63c3f5
add unsubscribe command
Westixy Jun 12, 2018
1460f0d
add alert
Westixy Jun 12, 2018
9771784
update send methode
Westixy Jun 12, 2018
1affea8
change name for list
Westixy Jun 12, 2018
4cd7b66
fix typo
Westixy Jun 12, 2018
31cdd7f
fix if collection doesn't exist
Westixy Jun 12, 2018
45d1c48
not necessary
Westixy Jun 12, 2018
abf09eb
set db path on enviroment and remove dotenv from deps
Westixy Jun 12, 2018
4fc5c18
reply to user; delete command; translate to fr
Westixy Jun 12, 2018
6c42cc7
fix subscribe bug
Westixy Jun 12, 2018
66dd7ff
fix bug on unsubscribe
Westixy Jun 12, 2018
81a3e75
Merge pull request #7 from Westixy-FORK/feature_channel-subscribe
Xstoudi Jun 13, 2018
3d0abb3
Update help.js
Xstoudi Jun 13, 2018
f84d564
Handle perms
Xstoudi Jun 13, 2018
26655a6
Fix
Xstoudi Jun 13, 2018
7c515bc
Update subscriber.js
Xstoudi Jun 13, 2018
77cdde5
Update README.md
Xstoudi Jun 13, 2018
290e9b9
Merge pull request #1 from ES-Community/master
Westixy Aug 2, 2018
34d72c3
change databse to nodb
Westixy Aug 20, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,5 @@ typings/
.vscode

./config/dev.json

db/**
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
sudo: required
language: node_js
services:
- docker
node_js:
- "9"
install:
- npm install
after_success:
- docker build .
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build -t xstoudi/es-bot .
- docker push xstoudi/es-bot
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:9

WORKDIR /es-bot

COPY package*.json /es-bot/

RUN npm install

COPY . /es-bot

CMD npm start
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,22 @@ npm install
npm start
```

Fill required `token` fields in /config/prod.json (all informations should be available on your Discord BOT page).
Config settings in /config/prod.json and set the following env var:
```
DISCORD_TOKEN=
TWITTER_CONSUMER_KEY=
TWITTER_CONSUMER_SECRET=
TWITTER_ACCESS_TOKEN=
TWITTER_ACCESS_TOKEN_SECRET=
NODB_GIST_ID=
NODB_GIST_TOKEN=
```

## Commands available

- help
- addrole
- delrole
- doc
- feedtweeter
- subscribe [list]
- unsubscribe
- alert
10 changes: 0 additions & 10 deletions config/prod.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
{
"command_char": "!",
"discord": {
"token": ""
},
"twitter": {
"consumer_key": "",
"consumer_secret": "",
"access_token": "",
"access_token_secret": "",
"timeout_ms": 60000
},
"twitter_feeds": [
"nodejs",
"node_js",
Expand Down
Loading