Skip to content
This repository was archived by the owner on Jun 12, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@ 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=
```

## Commands available

- help
- addrole
- delrole
- doc
- feedtweeter
12 changes: 1 addition & 11 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 Expand Up @@ -128,4 +118,4 @@
"StrongLoop",
"JSKongress"
]
}
}
Loading