-
Notifications
You must be signed in to change notification settings - Fork 39
Make use of ES7 async when possible #122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 31 commits
ec135bd
9e8d674
63c0c82
e86ca4d
044671c
c5ca908
cea90a1
d8a3e94
8e72f82
5a0a628
2c86ae6
60067f2
c8bca37
c1c35c0
de23596
411844a
69857d3
081829e
39569cc
03d7b57
404fd37
e41cc3d
f745a6f
4233478
a8474ad
6962699
1bec29e
b64e97d
51f62be
9243da4
0e00813
269137b
05d7d85
d50307d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| linters: | ||
| eslint: | ||
| config: './.eslintrc.json' | ||
| flake8: | ||
| enable: false | ||
| files: | ||
| ignore: ['package.json'] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| language: node_js | ||
| node_js: | ||
| - "node" | ||
| - "6.11.3" | ||
|
|
||
| notifications: | ||
| webhooks: | ||
| urls: | ||
| - https://warframestat.us/parser/travis-ci.php | ||
| on_success: always # default: always | ||
| on_failure: always # default: always | ||
| on_start: change # default: never | ||
| on_cancel: always # default: always | ||
| on_error: always # default: always |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,19 +3,12 @@ | |
| const cluster = require('cluster'); | ||
| const Nexus = require('warframe-nexus-query'); | ||
| const Cache = require('json-fetch-cache'); | ||
| const DataCache = require('./src/resources/DropCache.js'); | ||
|
|
||
| /** | ||
| * Raven client for logging errors and debugging events | ||
| * @type {Raven} | ||
| */ | ||
| const NexusFetcher = require('nexus-stats-api'); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unable to resolve path to module 'nexus-stats-api'. (import/no-unresolved)
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. waiiiiii There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unable to resolve path to module 'nexus-stats-api'. (import/no-unresolved) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unable to resolve path to module 'nexus-stats-api'. (import/no-unresolved) |
||
| const Raven = require('raven'); | ||
|
|
||
| /** | ||
| * Bot class for interacting with discord and handling commands | ||
| * @type {Genesis} | ||
| */ | ||
| const DataCache = require('./src/resources/DropCache.js'); | ||
| const Genesis = require('./src/bot.js'); | ||
| const ClusterManager = require('./src/ClusterManager.js'); | ||
|
|
||
| /** | ||
| * Raven client instance for logging errors and debugging events | ||
|
|
@@ -30,22 +23,19 @@ const client = Raven.config(process.env.RAVEN_URL, { | |
| */ | ||
| const Logger = require('./src/Logger.js'); | ||
|
|
||
| /** | ||
| * Class that manages the cluster's workers | ||
| * @type {Function} | ||
| */ | ||
| const ClusterManager = require('./src/ClusterManager.js'); | ||
|
|
||
| client.install(); | ||
|
|
||
| client.on('error', (error) => { | ||
| // eslint-disable-next-line no-console | ||
| console.error(`Could not report the following error to Sentry: ${error.message}`); | ||
| }); | ||
|
|
||
| const logger = new Logger(client); | ||
|
|
||
| const NexusFetcher = require('nexus-stats-api'); | ||
| process.on('uncaughtException', (err) => { | ||
| logger.error(err); | ||
| }); | ||
| process.on('unhandledRejection', (err) => { | ||
| logger.error(err); | ||
| }); | ||
|
|
||
| const nexusOptions = { | ||
| user_key: process.env.NEXUSSTATS_USER_KEY || undefined, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unable to resolve path to module 'nexus-stats-api'. (import/no-unresolved)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Kaptard i can't quite figure out why i'm getting an error on this