Skip to content

Commit fdb6664

Browse files
committed
Asyncify EXIF bot + tests #7339
1 parent d920a30 commit fdb6664

File tree

11 files changed

+2722
-306
lines changed

11 files changed

+2722
-306
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
check-api-bots*.zip
33
config.js
4+
configurator/

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
language: node_js
2+
node_js:
3+
- "node"
4+
cache: npm
5+
before_install:
6+
- git clone https://${TOKEN}:[email protected]/meedan/configurator ./configurator
7+
- d=configurator/check-api-bots/travis/; for f in $(find $d -type f); do cp "$f" "${f/$d/}"; done
8+
notifications:
9+
slack:
10+
secure: EB6npc5OJOCurE/c1Tqo9+4smMNgM6JEKennHBvwxZZ3QTvDpjGWqmzrBESWrU7zSbEkXL7JscUSFuaMWkgwfTegbP1Nw98DwVDKK50dufmYQlyzWYpsdqtdAF+MdgGjmYRkR3UITW2jrwlVTUQiSNV1aq1mJ116g2zu3VqoQc61IouUYCw7pjXgbbQFHGFmfDGVbMBxombbySgxcRoSbxxLkGh7+33Qi4EvPDz8s0OznKQOtxESmmUc+9Z9UjSvt/LncgtyADNUSGCryXTqU0APh2M/vcAhSbR+eSx/O58VE8+guADyjnbuqsoDcjV3uNbtiipe62AAuR/Hbsn8UZfYRG4vDztwq772vGnwI7nYiyldT8faVwaeOl5qdInd0V27SnJ1T8sk36O0scYUJ0xJvNpWq4dloqhnCytJqIPbLIFXHm1jBEsGPv2UkfWvO91Y8mnVY2/OPldqIiN/VgIJcdSMloXowCcyHFMyd3WfOzV8ppY3KHnBsBxnVc6HbIwZQcJSfZd7UW8o9Czu7CVrkppzrD2VSkWLLUxcRZXqtd4BNRefi0PGmVN+PE993+8vSFvhYKpICNK7R9Y3DuXezQiAG+h90+qIZ7FXkVBJEB23gSBYTyZh0mkD7MSYM71BZ55WFmsedWk8M3GVSTGAMnbwoOP35rB40J4pGOc=

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A collection of bots that can be connected to [Check API](https://github.com/mee
44

55
## Bots
66

7-
We currently have three bots here.
7+
We currently have two bots here.
88

99
### 1. YouTube Data Bot
1010

@@ -21,10 +21,6 @@ All those results are sent to Check as annotations.
2121
This bot is at `exif.js`. It listens to the `create_project_media` event and, if it's an uploaded media, it extracts EXIF data and
2222
posts to Check as an annotation, with a link for the full report.
2323

24-
### 3. Similarity Bot
25-
26-
This bot is at `claim-similarity.js`. It listens to the the `create_project_media` event and, if it's a claim, it stores in Alegre's similarity index and related to another existing claim on Check if they are similar.
27-
2824
## Usage
2925

3026
* Copy `config.js.example` to `config.js` and define your configurations

claim-similarity.js

Lines changed: 0 additions & 186 deletions
This file was deleted.

config.js.example

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ const config = {
88
checkApiUrl: 'https://checkmedia.org',
99
checkApiAccessToken: 'get one on admin UI when a bot is created',
1010
youtubeKey: 'a YouTube key'
11-
},
12-
similarity: {
13-
alegreUrl: 'https://alegre.speakbridge.io',
14-
checkApiUrl: 'https://check-api-qa.checkmedia.org',
15-
checkApiAccessToken: 'get one on admin UI when a bot is created',
1611
}
1712
};
1813
module.exports = config;

0 commit comments

Comments
 (0)