Skip to content
This repository has been archived by the owner on Sep 5, 2022. It is now read-only.

Commit

Permalink
release/1.0.7 (#336)
Browse files Browse the repository at this point in the history
* Master (#311)

* release/1.0.4 (#285)

* merging Master back in to Development (#277)

* release/1.0.1 (#244)

* feat: fortune command

* fix: bracket

* fix: removed reference to callback for nsfw

* chore: added format and tests back

* test: added test for help case

* test: test for fortune help

* chore: adding nsfw true

* fix: help output expected corrected

* chore: fixed help and added tests

* fix: added eof break

* feat: mtastatus command and sanitize

* chore(package): update sinon-chai to version 3.1.0

* chore(package): update sinon to version 5.0.8

* chore(package): update sinon to version 5.0.10

Closes #226

* chore(package): update @babel/register to version 7.0.0-beta.48

* chore(package): update @babel/core to version 7.0.0-beta.48

* chore: base stats stuff

* chore: adding comments

* fix(package): update winston to version 3.0.0-rc6

* Delete package-lock.json

* chore(package): update nock to version 9.3.0

* chore: created about command

* chuck: a bunch of garbage

* chore(package): update nyc to version 12.0.1

* chore: more garbage

* feat: created cat facts

* fix: spacing

* chore: stubbing out the feature

* chore(package): update nyc to version 12.0.2

* chore(package): update eslint-plugin-react to version 7.9.0

* chore(package): update eslint-plugin-react to version 7.9.1

* fix: missing config helper

* chore(package): update tough-cookie to version 2.4.2

* refactor: refactored to use a command factory

* version bump for release

* release/1.0.2 (#260)

* release/1.0.1 (#244) (#245)

* feat: fortune command

* fix: bracket

* fix: removed reference to callback for nsfw

* chore: added format and tests back

* test: added test for help case

* test: test for fortune help

* chore: adding nsfw true

* fix: help output expected corrected

* chore: fixed help and added tests

* fix: added eof break

* feat: mtastatus command and sanitize

* chore(package): update sinon-chai to version 3.1.0

* chore(package): update sinon to version 5.0.8

* chore(package): update sinon to version 5.0.10

Closes #226

* chore(package): update @babel/register to version 7.0.0-beta.48

* chore(package): update @babel/core to version 7.0.0-beta.48

* chore: base stats stuff

* chore: adding comments

* fix(package): update winston to version 3.0.0-rc6

* Delete package-lock.json

* chore(package): update nock to version 9.3.0

* chore: created about command

* chuck: a bunch of garbage

* chore(package): update nyc to version 12.0.1

* chore: more garbage

* feat: created cat facts

* fix: spacing

* chore: stubbing out the feature

* chore(package): update nyc to version 12.0.2

* chore(package): update eslint-plugin-react to version 7.9.0

* chore(package): update eslint-plugin-react to version 7.9.1

* fix: missing config helper

* chore(package): update tough-cookie to version 2.4.2

* refactor: refactored to use a command factory

* version bump for release

* feat: added distribution (#248)

* fix: removes annoying whitespaces (#250)

* fix: removes annoying whitespaces

* fix: moved it out of sanitize

* Delete package-lock.json

* fix(package): update @slack/client to version 4.3.0 (#251)

* feat: added woot command (#257)

* feat: added woot command

* test: removed tests :P

* test: added tests (#258)

* test: added tests (#259)

* feat: dockerfile (#252)

* feat: dockerfile

* fix: Travis touch-up

* chore: docker-compose

* chore: changed directory

* feat: docker-compose file

* test: added tests

* chore(package): update sinon to version 5.1.0 (#253)

* Release/1.0.3 (#276)

* Master (#261)

* release/1.0.1 (#244)

* feat: fortune command

* fix: bracket

* fix: removed reference to callback for nsfw

* chore: added format and tests back

* test: added test for help case

* test: test for fortune help

* chore: adding nsfw true

* fix: help output expected corrected

* chore: fixed help and added tests

* fix: added eof break

* feat: mtastatus command and sanitize

* chore(package): update sinon-chai to version 3.1.0

* chore(package): update sinon to version 5.0.8

* chore(package): update sinon to version 5.0.10

Closes #226

* chore(package): update @babel/register to version 7.0.0-beta.48

* chore(package): update @babel/core to version 7.0.0-beta.48

* chore: base stats stuff

* chore: adding comments

* fix(package): update winston to version 3.0.0-rc6

* Delete package-lock.json

* chore(package): update nock to version 9.3.0

* chore: created about command

* chuck: a bunch of garbage

* chore(package): update nyc to version 12.0.1

* chore: more garbage

* feat: created cat facts

* fix: spacing

* chore: stubbing out the feature

* chore(package): update nyc to version 12.0.2

* chore(package): update eslint-plugin-react to version 7.9.0

* chore(package): update eslint-plugin-react to version 7.9.1

* fix: missing config helper

* chore(package): update tough-cookie to version 2.4.2

* refactor: refactored to use a command factory

* version bump for release

* release/1.0.2 (#260)

* release/1.0.1 (#244) (#245)

* feat: fortune command

* fix: bracket

* fix: removed reference to callback for nsfw

* chore: added format and tests back

* test: added test for help case

* test: test for fortune help

* chore: adding nsfw true

* fix: help output expected corrected

* chore: fixed help and added tests

* fix: added eof break

* feat: mtastatus command and sanitize

* chore(package): update sinon-chai to version 3.1.0

* chore(package): update sinon to version 5.0.8

* chore(package): update sinon to version 5.0.10

Closes #226

* chore(package): update @babel/register to version 7.0.0-beta.48

* chore(package): update @babel/core to version 7.0.0-beta.48

* chore: base stats stuff

* chore: adding comments

* fix(package): update winston to version 3.0.0-rc6

* Delete package-lock.json

* chore(package): update nock to version 9.3.0

* chore: created about command

* chuck: a bunch of garbage

* chore(package): update nyc to version 12.0.1

* chore: more garbage

* feat: created cat facts

* fix: spacing

* chore: stubbing out the feature

* chore(package): update nyc to version 12.0.2

* chore(package): update eslint-plugin-react to version 7.9.0

* chore(package): update eslint-plugin-react to version 7.9.1

* fix: missing config helper

* chore(package): update tough-cookie to version 2.4.2

* refactor: refactored to use a command factory

* version bump for release

* feat: added distribution (#248)

* fix: removes annoying whitespaces (#250)

* fix: removes annoying whitespaces

* fix: moved it out of sanitize

* Delete package-lock.json

* fix(package): update @slack/client to version 4.3.0 (#251)

* feat: added woot command (#257)

* feat: added woot command

* test: removed tests :P

* test: added tests (#258)

* test: added tests (#259)

* feat: dockerfile (#252)

* feat: dockerfile

* fix: Travis touch-up

* chore: docker-compose

* chore: changed directory

* feat: docker-compose file

* test: added tests

* chore(package): update sinon to version 5.1.0 (#253)

* Update mtastatus.test.js (#262)

* Update slack_helper.js (#263)

* chore(package): update nock to version 9.3.1 (#264)

* fix(package): update @slack/client to version 4.3.1 (#265)

* chore(package): update nock to version 9.3.2 (#266)

* chore(package): update sinon to version 5.1.1 (#268)

* refactor of docker travis CI (#267)

* refactor of docker travis CI

* chore: making this viable

* chore(package): update sinon to version 6.0.0 (#269)

* fix(package): update winston to version 3.0.0 (#271)

* chore(package): update sinon-chai to version 3.2.0 (#270)

* chore(package): update @babel/register to version 7.0.0-beta.50 (#272)

* chore(package): update @babel/core to version 7.0.0-beta.50 (#273)

* chore(package): update nock to version 9.3.3 (#274)

* feat: added days to about/format (#275)

* release/1.0.3

* feat: added travis env variables for loading durring travis builds (#278)

* feat: added travis env variables for loading durring travis builds

* fix: mistake in config.js.example

* feat: timeout on test

* refactor: dangerous refactor of app and tests

* feat: forgot done

* feat: helper tests

* test: detect url test

* chore: writing tests for detectURL

* chore: fix tests, adds a few more for weather and google command

* fix: removes bad test from weather

* docs: added to readme.md (#279)

* docs: added to readme.md

* Update README.md

* feat: coin command (#280)

* feat: coin command

* fix: just got it working correctly

* Update README.md (#281)

* chore: added some tests for coin command (#282)

* refactor: commented out some stuff which isn't being used yet (#283)

* refactor: commented out some stuff which isn't being used yet

* semver: upping the version

* feat: tests

* docs: touch ups to the readme adding about command (#284)

* docs: touch ups to the readme adding about command

* docs: added instructions for configuring the coin command

* 1.0.4-hotfix: removes call to detectURL (#288)

* release/1.0.4 (#285) (#286)

* merging Master back in to Development (#277)

* release/1.0.1 (#244)

* feat: fortune command

* fix: bracket

* fix: removed reference to callback for nsfw

* chore: added format and tests back

* test: added test for help case

* test: test for fortune help

* chore: adding nsfw true

* fix: help output expected corrected

* chore: fixed help and added tests

* fix: added eof break

* feat: mtastatus command and sanitize

* chore(package): update sinon-chai to version 3.1.0

* chore(package): update sinon to version 5.0.8

* chore(package): update sinon to version 5.0.10

Closes #226

* chore(package): update @babel/register to version 7.0.0-beta.48

* chore(package): update @babel/core to version 7.0.0-beta.48

* chore: base stats stuff

* chore: adding comments

* fix(package): update winston to version 3.0.0-rc6

* Delete package-lock.json

* chore(package): update nock to version 9.3.0

* chore: created about command

* chuck: a bunch of garbage

* chore(package): update nyc to version 12.0.1

* chore: more garbage

* feat: created cat facts

* fix: spacing

* chore: stubbing out the feature

* chore(package): update nyc to version 12.0.2

* chore(package): update eslint-plugin-react to version 7.9.0

* chore(package): update eslint-plugin-react to version 7.9.1

* fix: missing config helper

* chore(package): update tough-cookie to version 2.4.2

* refactor: refactored to use a command factory

* version bump for release

* release/1.0.2 (#260)

* release/1.0.1 (#244) (#245)

* feat: fortune command

* fix: bracket

* fix: removed reference to callback for nsfw

* chore: added format and tests back

* test: added test for help case

* test: test for fortune help

* chore: adding nsfw true

* fix: help output expected corrected

* chore: fixed help and added tests

* fix: added eof break

* feat: mtastatus command and sanitize

* chore(package): update sinon-chai to version 3.1.0

* chore(package): update sinon to version 5.0.8

* chore(package): update sinon to version 5.0.10

Closes #226

* chore(package): update @babel/register to version 7.0.0-beta.48

* chore(package): update @babel/core to version 7.0.0-beta.48

* chore: base stats stuff

* chore: adding comments

* fix(package): update winston to version 3.0.0-rc6

* Delete package-lock.json

* chore(package): update nock to version 9.3.0

* chore: created about command

* chuck: a bunch of garbage

* chore(package): update nyc to version 12.0.1

* chore: more garbage

* feat: created cat facts

* fix: spacing

* chore: stubbing out the feature

* chore(package): update nyc to version 12.0.2

* chore(package): update eslint-plugin-react to version 7.9.0

* chore(package): update eslint-plugin-react to version 7.9.1

* fix: missing config helper

* chore(package): update tough-cookie to version 2.4.2

* refactor: refactored to use a command factory

* version bump for release

* feat: added distribution (#248)

* fix: removes annoying whitespaces (#250)

* fix: removes annoying whitespaces

* fix: moved it out of sanitize

* Delete package-lock.json

* fix(package): update @slack/client to version 4.3.0 (#251)

* feat: added woot command (#257)

* feat: added woot command

* test: removed tests :P

* test: added tests (#258)

* test: added tests (#259)

* feat: dockerfile (#252)

* feat: dockerfile

* fix: Travis touch-up

* chore: docker-compose

* chore: changed directory

* feat: docker-compose file

* test: added tests

* chore(package): update sinon to version 5.1.0 (#253)

* Release/1.0.3 (#276)

* Master (#261)

* release/1.0.1 (#244)

* feat: fortune command

* fix: bracket

* fix: removed reference to callback for nsfw

* chore: added format and tests back

* test: added test for help case

* test: test for fortune help

* chore: adding nsfw true

* fix: help output expected corrected

* chore: fixed help and added tests

* fix: added eof break

* feat: mtastatus command and sanitize

* chore(package): update sinon-chai to version 3.1.0

* chore(package): update sinon to version 5.0.8

* chore(package): update sinon to version 5.0.10

Closes #226

* chore(package): update @babel/register to version 7.0.0-beta.48

* chore(package): update @babel/core to version 7.0.0-beta.48

* chore: base stats stuff

* chore: adding comments

* fix(package): update winston to version 3.0.0-rc6

* Delete package-lock.json

* chore(package): update nock to version 9.3.0

* chore: created about command

* chuck: a bunch of garbage

* chore(package): update nyc to version 12.0.1

* chore: more garbage

* feat: created cat facts

* fix: spacing

* chore: stubbing out the feature

* chore(package): update nyc to version 12.0.2

* chore(package): update eslint-plugin-react to version 7.9.0

* chore(package): update eslint-plugin-react to version 7.9.1

* fix: missing config helper

* chore(package): update tough-cookie to version 2.4.2

* refactor: refactored to use a command factory

* version bump for release

* release/1.0.2 (#260)

* release/1.0.1 (#244) (#245)

* feat: fortune command

* fix: bracket

* fix: removed reference to callback for nsfw

* chore: added format and tests back

* test: added test for help case

* test: test for fortune help

* chore: adding nsfw true

* fix: help output expected corrected

* chore: fixed help and added tests

* fix: added eof break

* feat: mtastatus command and sanitize

* chore(package): update sinon-chai to version 3.1.0

* chore(package): update sinon to version 5.0.8

* chore(package): update sinon to version 5.0.10

Closes #226

* chore(package): update @babel/register to version 7.0.0-beta.48

* chore(package): update @babel/core to version 7.0.0-beta.48

* chore: base stats stuff

* chore: adding comments

* fix(package): update winston to version 3.0.0-rc6

* Delete package-lock.json

* chore(package): update nock to version 9.3.0

* chore: created about command

* chuck: a bunch of garbage

* chore(package): update nyc to version 12.0.1

* chore: more garbage

* feat: created cat facts

* fix: spacing

* chore: stubbing out the feature

* chore(package): update nyc to version 12.0.2

* chore(package): update eslint-plugin-react to version 7.9.0

* chore(package): update eslint-plugin-react to version 7.9.1

* fix: missing config helper

* chore(package): update tough-cookie to version 2.4.2

* refactor: refactored to use a command factory

* version bump for release

* feat: added distribution (#248)

* fix: removes annoying whitespaces (#250)

* fix: removes annoying whitespaces

* fix: moved it out of sanitize

* Delete package-lock.json

* fix(package): update @slack/client to version 4.3.0 (#251)

* feat: added woot command (#257)

* feat: added woot command

* test: removed tests :P

* test: added tests (#258)

* test: added tests (#259)

* feat: dockerfile (#252)

* feat: dockerfile

* fix: Travis touch-up

* chore: docker-compose

* chore: changed directory

* feat: docker-compose file

* test: added tests

* chore(package): update sinon to version 5.1.0 (#253)

* Update mtastatus.test.js (#262)

* Update slack_helper.js (#263)

* chore(package): update nock to version 9.3.1 (#264)

* fix(package): update @slack/client to version 4.3.1 (#265)

* chore(package): update nock to version 9.3.2 (#266)

* chore(package): update sinon to version 5.1.1 (#268)

* refactor of docker travis CI (#267)

* refactor of docker travis CI

* chore: making this viable

* chore(package): update sinon to version 6.0.0 (#269)

* fix(package): update winston to version 3.0.0 (#271)

* chore(package): update sinon-chai to version 3.2.0 (#270)

* chore(package): update @babel/register to version 7.0.0-beta.50 (#272)

* chore(package): update @babel/core to version 7.0.0-beta.50 (#273)

* chore(package): update nock to version 9.3.3 (#274)

* feat: added days to about/format (#275)

* release/1.0.3

* feat: added travis env variables for loading durring travis builds (#278)

* feat: added travis env variables for loading durring travis builds

* fix: mistake in config.js.example

* feat: timeout on test

* refactor: dangerous refactor of app and tests

* feat: forgot done

* feat: helper tests

* test: detect url test

* chore: writing tests for detectURL

* chore: fix tests, adds a few more for weather and google command

* fix: removes bad test from weather

* docs: added to readme.md (#279)

* docs: added to readme.md

* Update README.md

* feat: coin command (#280)

* feat: coin command

* fix: just got it working correctly

* Update README.md (#281)

* chore: added some tests for coin command (#282)

* refactor: commented out some stuff which isn't being used yet (#283)

* refactor: commented out some stuff which isn't being used yet

* semver: upping the version

* feat: tests

* docs: touch ups to the readme adding about command (#284)

* docs: touch ups to the readme adding about command

* docs: added instructions for configuring the coin command

* fix: removed call to detectURL (#287)

* release: version bump

* Release/1.0.6 (#310)

* release 1.0.5 (#289)

* release/1.0.4 (#285)

* merging Master back in to Development (#277)

* release/1.0.1 (#244)

* feat: fortune command

* fix: bracket

* fix: removed reference to callback for nsfw

* chore: added format and tests back

* test: added test for help case

* test: test for fortune help

* chore: adding nsfw true

* fix: help output expected corrected

* chore: fixed help and added tests

* fix: added eof break

* feat: mtastatus command and sanitize

* chore(package): update sinon-chai to version 3.1.0

* chore(package): update sinon to version 5.0.8

* chore(package): update sinon to version 5.0.10

Closes #226

* chore(package): update @babel/register to version 7.0.0-beta.48

* chore(package): update @babel/core to version 7.0.0-beta.48

* chore: base stats stuff

* chore: adding comments

* fix(package): update winston to version 3.0.0-rc6

* Delete package-lock.json

* chore(package): update nock to version 9.3.0

* chore: created about command

* chuck: a bunch of garbage

* chore(package): update nyc to version 12.0.1

* chore: more garbage

* feat: created cat facts

* fix: spacing

* chore: stubbing out the feature

* chore(package): update nyc to version 12.0.2

* chore(package): update eslint-plugin-react to version 7.9.0

* chore(package): update eslint-plugin-react to version 7.9.1

* fix: missing config helper

* chore(package): update tough-cookie to version 2.4.2

* refactor: refactored to use a command factory

* version bump for release

* release/1.0.2 (#260)

* release/1.0.1 (#244) (#245)

* feat: fortune command

* fix: bracket

* fix: removed reference to callback for nsfw

* chore: added format and tests back

* test: added test for help case

* test: test for fortune help

* chore: adding nsfw true

* fix: help output expected corrected

* chore: fixed help and added tests

* fix: added eof break

* feat: mtastatus command and sanitize

* chore(package): update sinon-chai to version 3.1.0

* chore(package): update sinon to version 5.0.8

* chore(package): update sinon to version 5.0.10

Closes #226

* chore(package): update @babel/register to version 7.0.0-beta.48

* chore(package): update @babel/core to version 7.0.0-beta.48

* chore: base stats stuff

* chore: adding comments

* fix(package): update winston to version 3.0.0-rc6

* Delete package-lock.json

* chore(package): update nock to version 9.3.0

* chore: created about command

* chuck: a bunch of garbage

* chore(package): update nyc to version 12.0.1

* chore: more garbage

* feat: created cat facts

* fix: spacing

* chore: stubbing out the feature

* chore(package): update nyc to version 12.0.2

* chore(package): update eslint-plugin-react to version 7.9.0

* chore(package): update eslint-plugin-react to version 7.9.1

* fix: missing config helper

* chore(package): update tough-cookie to version 2.4.2

* refactor: refactored to use a command factory

* version bump for release

* feat: added distribution (#248)

* fix: removes annoying whitespaces (#250)

* fix: removes annoying whitespaces

* fix: moved it out of sanitize

* Delete package-lock.json

* fix(package): update @slack/client to version 4.3.0 (#251)

* feat: added woot command (#257)

* feat: added woot command

* test: removed tests :P

* test: added tests (#258)

* test: added tests (#259)

* feat: dockerfile (#252)

* feat: dockerfile

* fix: Travis touch-up

* chore: docker-compose

* chore: changed directory

* feat: docker-compose file

* test: added tests

* chore(package): update sinon to version 5.1.0 (#253)

* Release/1.0.3 (#276)

* Master (#261)

* release/1.0.1 (#244)

* feat: fortune command

* fix: bracket

* fix: removed reference to callback for nsfw

* chore: added format and tests back

* test: added test for help case

* test: test for fortune help

* chore: adding nsfw true

* fix: help output expected corrected

* chore: fixed help and added tests

* fix: added eof break

* feat: mtastatus command and sanitize

* chore(package): update sinon-chai to version 3.1.0

* chore(package): update sinon to version 5.0.8

* chore(package): update sinon to version 5.0.10

Closes #226

* chore(package): update @babel/register to version 7.0.0-beta.48

* chore(package): update @babel/core to version 7.0.0-beta.48

* chore: base stats stuff

* chore: adding comments

* fix(package): update winston to version 3.0.0-rc6

* Delete package-lock.json

* chore(package): update nock to version 9.3.0

* chore: created about command

* chuck: a bunch of garbage

* chore(package): update nyc to version 12.0.1

* chore: more garbage

* feat: created cat facts

* fix: spacing

* chore: stubbing out the feature

* chore(package): update nyc to version 12.0.2

* chore(package): update eslint-plugin-react to version 7.9.0

* chore(package): update eslint-plugin-react to version 7.9.1

* fix: missing config helper

* chore(package): update tough-cookie to version 2.4.2

* refactor: refactored to use a command factory

* version bump for release

* release/1.0.2 (#260)

* release/1.0.1 (#244) (#245)

* feat: fortune command

* fix: bracket

* fix: removed reference to callback for nsfw

* chore: added format and tests back

* test: added test for help case

* test: test for fortune help

* chore: adding nsfw true

* fix: help output expected corrected

* chore: fixed help and added tests

* fix: added eof break

* feat: mtastatus command and sanitize

* chore(package): update sinon-chai to version 3.1.0

* chore(package): update sinon to version 5.0.8

* chore(package): update sinon to version 5.0.10

Closes #226

* chore(package): update @babel/register to version 7.0.0-beta.48

* chore(package): update @babel/core to version 7.0.0-beta.48

* chore: base stats stuff

* chore: adding comments

* fix(package): update winston to version 3.0.0-rc6

* Delete package-lock.json

* chore(package): update nock to version 9.3.0

* chore: created about command

* chuck: a bunch of garbage

* chore(package): update nyc to version 12.0.1

* chore: more garbage

* feat: created cat facts

* fix: spacing

* chore: stubbing out the feature

* chore(package): update nyc to version 12.0.2

* chore(package): update eslint-plugin-react to version 7.9.0

* chore(package): update eslint-plugin-react to version 7.9.1

* fix: missing config helper

* chore(package): update tough-cookie to version 2.4.2

* refactor: refactored to use a command factory

* version bump for release

* feat: added distribution (#248)

* fix: removes annoying whitespaces (#250)

* fix: removes annoying whitespaces

* fix: moved it out of sanitize

* Delete package-lock.json

* fix(package): update @slack/client to version 4.3.0 (#251)

* feat: added woot command (#257)

* feat: added woot command

* test: removed tests :P

* test: added tests (#258)

* test: added tests (#259)

* feat: dockerfile (#252)

* feat: dockerfile

* fix: Travis touch-up

* chore: docker-compose

* chore: changed directory

* feat: docker-compose file

* test: added tests

* chore(package): update sinon to version 5.1.0 (#253)

* Update mtastatus.test.js (#262)

* Update slack_helper.js (#263)

* chore(package): update nock to version 9.3.1 (#264)

* fix(package): update @slack/client to version 4.3.1 (#265)

* chore(package): update nock to version 9.3.2 (#266)

* chore(package): update sinon to version 5.1.1 (#268)

* refactor of docker travis CI (#267)

* refactor of docker travis CI

* chore: making this viable

* chore(package): update sinon to version 6.0.0 (#269)

* fix(package): update winston to version 3.0.0 (#271)

* chore(package): update sinon-chai to version 3.2.0 (#270)

* chore(package): update @babel/register to version 7.0.0-beta.50 (#272)

* chore(package): update @babel/core to version 7.0.0-beta.50 (#273)

* chore(package): update nock to version 9.3.3 (#274)

* feat: added days to about/format (#275)

* release/1.0.3

* feat: added travis env variables for loading durring travis builds (#278)

* feat: added travis env variables for loading durring travis builds

* fix: mistake in config.js.example

* feat: timeout on test

* refactor: dangerous refactor of app and tests

* feat: forgot done

* feat: helper tests

* test: detect url test

* chore: writing tests for detectURL

* chore: fix tests, adds a few more for weather and google command

* fix: removes bad test from weather

* docs: added to readme.md (#279)

* docs: added to readme.md

* Update README.md

* feat: coin command (#280)

* feat: coin command

* fix: just got it working correctly

* Update README.md (#281)

* chore: added some tests for coin command (#282)

* refactor: commented out some stuff which isn't being used yet (#283)

* refactor: commented out some stuff which isn't being used yet

* semver: upping the version

* feat: tests

* docs: touch ups to the readme adding about command (#284)

* docs: touch ups to the readme adding about command

* docs: added instructions for configuring the coin command

* 1.0.4-hotfix: removes call to detectURL (#288)

* release/1.0.4 (#285) (#286)

* merging Master back in to Development (#277)

* release/1.0.1 (#244)

* feat: fortune command

* fix: bracket

* fix: removed reference to callback for nsfw

* chore: added format and tests back

* test: added test for help case

* test: test for fortune help

* chore: adding nsfw true

* fix: help output expected corrected

* chore: fixed help and added tests

* fix: added eof break

* feat: mtastatus command and sanitize

* chore(package): update sinon-chai to version 3.1.0

* chore(package): update sinon to version 5.0.8

* chore(package): update sinon to version 5.0.10

Closes #226

* chore(package): update @babel/register to version 7.0.0-beta.48

* chore(package): update @babel/core to version 7.0.0-beta.48

* chore: base stats stuff

* chore: adding comments

* fix(package): update winston to version 3.0.0-rc6

* Delete package-lock.json

* chore(package): update nock to version 9.3.0

* chore: created about command

* chuck: a bunch of garbage

* chore(package): update nyc to version 12.0.1

* chore: more garbage

* feat: created cat facts

* fix: spacing

* chore: stubbing out the feature

* chore(package): update nyc to version 12.0.2

* chore(package): update eslint-plugin-react to version 7.9.0

* chore(package): update eslint-plugin-react to version 7.9.1

* fix: missing config helper

* chore(package): update tough-cookie to version 2.4.2

* refactor: refactored to use a command factory

* version bump for release

* release/1.0.2 (#260)

* release/1.0.1 (#244) (#245)

* feat: fortune command

* fix: bracket

* fix: removed reference to callback for nsfw

* chore: added format and tests back

* test: added test for help case

* test: test for fortune help

* chore: adding nsfw true

* fix: help output expected corrected

* chore: fixed help and added tests

* fix: added eof break

* feat: mtastatus command and sanitize

* chore(package): update sinon-chai to version 3.1.0

* chore(package): update sinon to version 5.0.8

* chore(package): update sinon to version 5.0.10

Closes #226

* chore(package): update @babel/register to version 7.0.0-beta.48

* chore(package): update @babel/core to version 7.0.0-beta.48

* chore: base stats stuff

* chore: adding comments

* fix(package): update winston to version 3.0.0-rc6

* Delete package-lock.json

* chore(package): update nock to version 9.3.0

* chore: created about command

* chuck: a bunch of garbage

* chore(package): update nyc to version 12.0.1

* chore: more garbage

* feat: created cat facts

* fix: spacing

* chore: stubbing out the feature

* chore(package): update nyc to version 12.0.2

* chore(package): update eslint-plugin-react to version 7.9.0

* chore(package): update eslint-plugin-react to version 7.9.1

* fix: missing config helper

* chore(package): update tough-cookie to version 2.4.2

* refactor: refactored to use a command factory

* version bump for release

* feat: added distribution (#248)

* fix: removes annoying whitespaces (#250)

* fix: removes annoying whitespaces

* fix: moved it out of sanitize

* Delete package-lock.json

* fix(package): update @slack/client to version 4.3.0 (#251)

* feat: added woot command (#257)

* feat: added woot command

* test: removed tests :P

* test: added tests (#258)

* test: added tests (#259)

* feat: dockerfile (#252)

* feat: dockerfile

* fix: Travis touch-up

* chore: docker-compose

* chore: changed directory

* feat: docker-compose file

* test: added tests

* chore(package): update sinon to version 5.1.0 (#253)

* Release/1.0.3 (#276)

* Master (#261)

* release/1.0.1 (#244)

* feat: fortune command

* fix: bracket

* fix: removed reference to callback for nsfw

* chore: added format and tests back

* test: added test for help case

* test: test for fortune help

* chore: adding nsfw true

* fix: help output expected corrected

* chore: fixed help and added tests

* fix: added eof break

* feat: mtastatus command and sanitize

* chore(package): update sinon-chai to version 3.1.0

* chore(package): update sinon to version 5.0.8

* chore(package): update sinon to version 5.0.10

Closes #226

* chore(package): update @babel/register to version 7.0.0-beta.48

* chore(package): update @babel/core to version 7.0.0-beta.48

* chore: base stats stuff

* chore: adding comments

* fix(package): update winston to version 3.0.0-rc6

* Delete package-lock.json

* chore(package): update nock to version 9.3.0

* chore: created about command

* chuck: a bunch of garbage

* chore(package): update nyc to version 12.0.1

* chore: more garbage

* feat: created cat facts

* fix: spacing

* chore: stubbing out the feature

* chore(package): update nyc to version 12.0.2

* chore(package): update eslint-plugin-react to version 7.9.0

* chore(package): update eslint-plugin-react to version 7.9.1

* fix: missing config helper

* chore(package): update tough-cookie to version 2.4.2

* refactor: refactored to use a command factory

* version bump for release

* release/1.0.2 (#260)

* release/1.0.1 (#244) (#245)

* feat: fortune command

* fix: bracket

* fix: removed reference to callback for nsfw

* chore: added format and tests back

* test: added test for help case

* test: test for fortune help

* chore: adding nsfw true

* fix: help output expected corrected

* chore: fixed help and added tests

* fix: added eof break

* feat: mtastatus command and sanitize

* chore(package): update sinon-chai to version 3.1.0

* chore(package): update sinon to version 5.0.8

* chore(package): update sinon to version 5.0.10

Closes #226

* chore(package): update @babel/register to version 7.0.0-beta.48

* chore(package): update @babel/core to version 7.0.0-beta.48

* chore: base stats stuff

* chore: adding comments

* fix(package): update winston to version 3.0.0-rc6

* Delete package-lock.json

* chore(package): update nock to version 9.3.0

* chore: created about command

* chuck: a bunch of garbage

* chore(package): update nyc to version 12.0.1

* chore: more garbage

* feat: created cat facts

* fix: spacing

* chore: stubbing out the feature

* chore(package): update nyc to version 12.0.2

* chore(package): update eslint-plugin-react to version 7.9.0

* chore(package): update eslint-plugin-react to version 7.9.1

* fix: missing config helper

* chore(package): update tough-cookie to version 2.4.2

* refactor: refactored to use a command factory

* version bump for release

* feat: added distribution (#248)

* fix: removes annoying whitespaces (#250)

* fix: removes annoying whitespaces

* fix: moved it out of sanitize

* Delete package-lock.json

* fix(package): update @slack/client to version 4.3.0 (#251)

* feat: added woot command (#257)

* feat: added woot command

* test: removed tests :P

* test: added tests (#258)

* test: added tests (#259)

* feat: dockerfile (#252)

* feat: dockerfile

* fix: Travis touch-up

* chore: docker-compose

* chore: changed directory

* feat: docker-compose file

* test: added tests

* chore(package): update sinon to version 5.1.0 (#253)

* Update mtastatus.test.js (#262)

* Update slack_helper.js (#263)

* chore(package): update nock to version 9.3.1 (#264)

* fix(package): update @slack/client to version 4.3.1 (#265)

* chore(package): update nock to version 9.3.2 (#266)

* chore(package): update sinon to version 5.1.1 (#268)

* refactor of docker travis CI (#267)

* refactor of docker travis CI

* chore: making this viable

* chore(package): update sinon to version 6.0.0 (#269)

* fix(package): update winston to version 3.0.0 (#271)

* chore(package): update sinon-chai to version 3.2.0 (#270)

* chore(package): update @babel/register to version 7.0.0-beta.50 (#272)

* chore(package): update @babel/core to version 7.0.0-beta.50 (#273)

* chore(package): update nock to version 9.3.3 (#274)

* feat: added days to about/format (#275)

* release/1.0.3

* feat: added travis env variables for loading durring travis builds (#278)

* feat: added travis env variables for loading durring travis builds

* fix: mistake in config.js.example

* feat: timeout on test

* refactor: dangerous refactor of app and tests

* feat: forgot done

* feat: helper tests

* test: detect url test

* chore: writing tests for detectURL

* chore: fix tests, adds a few more for weather and google command

* fix: removes bad test from weather

* docs: added to readme.md (#279)

* docs: added to readme.md

* Update README.md

* feat: coin command (#280)

* feat: coin command

* fix: just got it working correctly

* Update README.md (#281)

* chore: added some tests for coin command (#282)

* refactor: commented out some stuff which isn't being used yet (#283)

* refactor: commented out some stuff which isn't being used yet

* semver: upping the version

* feat: tests

* docs: touch ups to the readme adding about command (#284)

* docs: touch ups to the readme adding about command

* docs: added instructions for configuring the coin command

* fix: removed call to detectURL (#287)

* release: version bump

* chore(package): update eslint-config-airbnb to version 17.0.0 (#290)

* chore(package): update babel-eslint to version 8.2.4 (#291)

* chore(package): update eslint to version 5.0.0 (#292)

* chore(package): update eslint-plugin-import to version 2.13.0 (#293)

* chore(package): update sinon to version 6.0.1 (#294)

* Update package.json (#297)

* chore(package): update eslint-plugin-react to version 7.10.0 (#295)

* chore(package): update eslint to version 5.0.1 (#298)

* feat: added lirr trains (#299)

* feat: added lirr trains

* fix: tests

* chore: version bump

* fix: fixed help test output

* chore: added tests (#301)

* chore: added tests

* chore: added more tests

* chore: fixed Far Rockaway test

* fix(package): update commander to version 2.16.0 (#302)

* chore(package): update nock to version 9.4.0 (#303)

* feat: added multi slack connections (#304)

chore: fixed tests
chore: added trainstatus command to docs
chore: updated train status with line detection

* chore(package): update nock to version 9.4.1 (#305)

* feat: adds metro north and more to trainstatus command (#306)

* feat: adds metro north and more to trainstatus command

* chore: added more tests

* chore(package): update eslint-plugin-jsx-a11y to version 6.1.0 (#307)

* chore(package): update pm2 to version 3.0.0 (#308)

* chore: corrected version for release 1.0.6 (#309)

* chore: corrected version for release 1.0.6

1.0.6

* chore: tests tryhard to get the coverage gap

* chore: updated mocked resp to match test result

* chore: tests, added error for no key found case

* chore: testing whitespace removal

* chore: this error is actually a resolve, not rejection :D

* chore: that final space

* chore: added test cases for missing configs (#312)

* chore: added test cases for missing configs

* chore: more test cases

* chore: typo

* chore: fixing test

* chore(package): update @babel/register to version 7.0.0-beta.52 (#314)

* chore(package): update @babel/core to version 7.0.0-beta.52 (#315)

* feat: base irc helper logic (#313)

* chore(package): update codecov to version 3.0.3 (#316)

* chore(package): update codecov to version 3.0.4 (#317)

* chore(package): update nock to version 9.4.2 (#318)

* Update index.js (#319)

* chore(package): update @babel/register to version 7.0.0-beta.53 (#321)

* chore(package): update @babel/core to version 7.0.0-beta.53 (#322)

* feat: added irc helper to app (#320)

* feat: added irc helper to app, lets see what happens

* Feature/irc (#323)

* feat: base irc helper logic

* chore: added spread plugin

* chore: removed lock

* Delete package-lock.json

* chore: added irc

* chore: removed offending test :X

* chore(package): update babel-eslint to version 8.2.6 (#324)

* chore(package): update eslint-plugin-jsx-a11y to version 6.1.1 (#325)

* chore(package): update @babel/register to version 7.0.0-beta.54 (#327)

* Delete pm2.config.json (#328)

* chore(package): update nock to version 9.4.3 (#329)

* chore(package): update pm2 to version 3.0.1 (#330)

* chore(package): update pm2 to version 3.0.3 (#331)

* chore(package): update nock to version 9.4.4 (#332)

* fix(package): update commander to version 2.17.0 (#333)

* chore: adding more tests for slack and irc helper (#334)

* chore: adding more tests for slack and irc helper

* chore: added a test for sendmessage

* chore: detectcommand test

* chore: more test cases for detectCommand

* chore: adding test for connect and setupEvents (#335)

* release/1.0.7

* chore: added test for irc helper (#337)

* chore: added test for irc helper

* chore: added detect command

* fix: made test execution more correct

* chore: setupEvents test

* chore: added app tests too
  • Loading branch information
BeauBouchard committed Aug 5, 2018
1 parent cb9fea3 commit a65e3ba
Show file tree
Hide file tree
Showing 11 changed files with 508 additions and 32 deletions.
6 changes: 5 additions & 1 deletion app.js
@@ -1,4 +1,4 @@
// import xxmp from './helpers/irc_helper';
import Xxmp from './helpers/irc_helper';
import Slack from './helpers/slack_helper';
import config from './helpers/config_helper';
import logger from './utils/logger';
Expand Down Expand Up @@ -39,6 +39,10 @@ class App {
if (config.irc && config.irc.length >= 1) {
config.irc.forEach((ircConfig) => {
// TODO: make irc helper
const irc = new Xxmp();
irc.connect(forEach);
irc.setupEvents();
this.bot_irc.push(irc);
});
} else {
logger.info('No irc configuration found');
Expand Down
3 changes: 3 additions & 0 deletions commands/index.js
Expand Up @@ -13,7 +13,10 @@ fs
});

// aliases
// TO-DO refactor this to use factory params
commands.g = require('./google').default;
commands.w = require('./weather').default;
commands.mtastatus = require('./trainstatus').default;
commands.mta = require('./trainstatus').default;

module.exports = commands;
2 changes: 1 addition & 1 deletion config/config.js.example
Expand Up @@ -35,7 +35,7 @@ const config = {
stripColors: false,
channelPrefixes: '&#',
messageSplit: 512,
encoding: ''
encoding: '',
}],

// Giphy API key
Expand Down
174 changes: 174 additions & 0 deletions helpers/irc_helper.js
@@ -0,0 +1,174 @@
import irc from 'irc';

import commands from '../commands';
import logger from '../utils/logger';
import Sanitize from '../utils/sanitize';
import config from '../helpers/config_helper';

class ircHelper {
constructor() {
this.appData = {
source: {}
};
logger.debug('irc helper start');
this.commandPattern = this.setCommandPattern(config.commandChar);
}

/**
* connect
* builds all connection objects
* @param irc
*/
connect(inc_irc) {
logger.debug('connect');
this.appData.server = inc_irc.server;
this.appData.username = inc_irc.userName;
this.appData.realname = inc_irc.realName;
this.appData.password = inc_irc.password || false;
logger.debug(` - connecting to ${this.appData.server} ...`);
logger.debug(` - bot username ${this.appData.username}`);
logger.debug(` - bot realname ${this.appData.realname}`);
this.client = new irc.Client(
this.appData.server,
this.appData.username,
{
'password': this.password,
...inc_irc,
},
);

logger.info(' ✅ connected');
}

/**
* setupEvents
*/
setupEvents() {
logger.debug('setupEvents');
this.onMessage();
this.onRegistered();
}

/**
* onRegistered
*/
onRegistered() {
logger.debug('onRegistered setup');
this.client.on('registered', (message) => {
logger.debug(` - ${message}`);
this.appData.nick = message.args[0]; // eslint-disable-line
});
}

/**
* onJoin
*/
onJoin() {
/**
* Emitted when a user joins a channel (including when the client itself joins a channel).
* See the raw event for details on the message object.
*/
this.client.on('join', (channel, nick, message) => {
// this.onJoin(channel, nick, message);
});
}

/**
* onKick
*/
onKick() {
/**
* Emitted when a user is kicked from a channel. See the raw event for details on the message object.
*/
this.client.on('kick', (channel, nick, by, reason, message) => {
// this.onKick(channel, nick, by, reason, message);
});
}

/**
* onTopic
*/
onTopic() {
/**
* Emitted when the server sends the channel topic on joining a channel, or when a user changes
* the topic on a channel. See the raw event for details on the message object.
*/
this.client.on('topic', (channel, topic, nick, message) => {
this.onMessage(channel, topic, nick, message);
});
}

/**
* onMessage
* The message handler for incoming messages for the helper
*/
onMessage() {
logger.debug('onMessage setup');
/**
* Emitted when a message is sent.
* to can be either a nick (which is most likely this clients nick and means
* a private message), or a channel (which means a message to that channel).
* See the raw event for details on the message object.
*/
this.client.on('message', (from, to, text, message) => {
const target = (to === this.appData.nick ? from : to);
this.detectCommand(from, target, text, message);
// ircHelper.detectURL(target, text, callback);
// ircHelper.detectReddit(from, target, text, message, callback);
logger.debug(` + onMessage ${target} ${message}`);
});
}

/**
* detectCommand
* detects and calls a command from a message
* @param {object} from -
* @param {object} target -
* @param {object} text -
* @param {Object} message - the message is the current message being read.
*/
async detectCommand(from, target, text, message) {
const match = text.match(this.commandPattern);
logger.debug(message);
if (match) {
const command = match[1];
const args = match[2];
if (command in commands) {
logger.debug(`Command found: channel: ${message.channel}, user: ${message.user}, command: ${command}`);
commands[command].main(args,this.appData).then((response) => {
this.sendMessage(message.channel, `${response}`);
logger.debug(response);
}).catch((error) => {
this.sendMessage(message.channel, `${error}`);
logger.error(error);
});
} else {
this.sendMessage(target, 'Sorry, I do not know that command');
}
}
}

/**
* sendMessage
* @param {Object} to -
* @param {Object} message - the message is the current message being read.
*/
sendMessage(to, message) {
this.client.say(to, message);
}

/**
* setCommandPattern
* @param {char} commandChar - a single character which denotes the start of a command
* @return {string} regexString - the regular expression string for the commands to be parsed by
*/
setCommandPattern(commandChar) {
logger.debug('setCommandPattern');
const regexString = `^${commandChar}(\\w+) ?(.*)`;
this.commandPattern = new RegExp(regexString);
return regexString;
}

}

export default ircHelper;
7 changes: 5 additions & 2 deletions helpers/slack_helper.js
Expand Up @@ -88,6 +88,8 @@ class slackHelper {
* detectCommand
* detects and calls a command from a message
* @param {Object} message - the message is the current message being read.
* message.channel
* message.user
*/
async detectCommand(message) {
const text = message.text;
Expand Down Expand Up @@ -118,9 +120,10 @@ class slackHelper {
sendMessage(channelID, messageBody) {
// use the `sendMessage()` method to send a simple string to a channel using the channel ID
this.rtm.sendMessage(messageBody, channelID)
// Returns a promise that resolves when the message is sent
.then((msg) => logger.debug(`Sent: ${channelID} with ts:${msg.ts}`))
.catch(logger.error);
.catch((err) => {
logger.error(`sendMessage has experienced an Error: ${err}`);
});
}

/**
Expand Down
23 changes: 14 additions & 9 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "katelibby",
"version": "1.0.6",
"version": "1.0.7",
"description": "An IRC and Slack Bot",
"repository": {
"type": "git",
Expand Down Expand Up @@ -38,6 +38,9 @@
}
}
]
],
"plugins": [
"@babel/plugin-proposal-object-rest-spread"
]
},
"eslintConfig": {
Expand Down Expand Up @@ -96,32 +99,34 @@
"dependencies": {
"@slack/client": "4.3.1",
"bluebird": "3.5.1",
"commander": "2.16.0",
"commander": "2.17.0",
"fs": "0.0.1-security",
"google": "2.1.0",
"irc": "git+https://github.com/wh-iterabb-it/node-irc.git",
"mta-gtfs": "1.1.0",
"path": "0.12.7",
"striptags": "3.1.1",
"superagent": "3.8.3",
"winston": "3.0.0"
},
"devDependencies": {
"@babel/core": "7.0.0-beta.51",
"@babel/register": "7.0.0-beta.51",
"@babel/core": "7.0.0-beta.53",
"@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.53",
"@babel/register": "7.0.0-beta.54",
"babel-cli": "6.26.0",
"babel-eslint": "8.2.4",
"babel-eslint": "8.2.6",
"babel-preset-env": "1.7.0",
"chai": "4.1.2",
"codecov": "3.0.2",
"codecov": "3.0.4",
"eslint": "5.0.1",
"eslint-config-airbnb": "17.0.0",
"eslint-plugin-import": "2.13.0",
"eslint-plugin-jsx-a11y": "6.1.0",
"eslint-plugin-jsx-a11y": "6.1.1",
"eslint-plugin-react": "7.10.0",
"mocha": "5.2.0",
"nock": "9.4.1",
"nock": "9.4.4",
"nyc": "12.0.2",
"pm2": "3.0.0",
"pm2": "3.0.3",
"sinon": "6.0.1",
"sinon-chai": "3.2.0",
"sinon-stub-promise": "4.0.0"
Expand Down
14 changes: 0 additions & 14 deletions pm2.config.json

This file was deleted.

0 comments on commit a65e3ba

Please sign in to comment.