Skip to content
This repository was archived by the owner on Jun 8, 2023. It is now read-only.

Commit 474910c

Browse files
Merge pull request #1498 from github/deprecate-plusplus-and-karma
Add deprecation messages to karma and plusplus.
2 parents d8bd82d + 1f1b2be commit 474910c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/scripts/karma.coffee

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ class Karma
8181
sorted.slice(-n).reverse()
8282

8383
module.exports = (robot) ->
84+
robot.logger.warning "karma.coffee has merged with plusplus.coffee and moved from hubot-scripts to its own package. Remove it from your hubot-scripts.json and see https://github.com/ajacksified/hubot-plusplus for upgrade instructions"
85+
8486
karma = new Karma robot
8587
allow_self = process.env.KARMA_ALLOW_SELF or "true"
8688

src/scripts/plusplus.coffee

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ class ScoreKeeper
102102
all.sort((a,b) -> b.score - a.score).reverse().slice(0,amount)
103103

104104
module.exports = (robot) ->
105+
robot.logger.warning "plusplus.coffee has merged with karma.coffee and moved from hubot-scripts to its own package. Remove it from your hubot-scripts.json and see https://github.com/ajacksified/hubot-plusplus for upgrade instructions"
105106
scoreKeeper = new ScoreKeeper(robot)
106107

107108
robot.hear /([\w\S]+)([\W\s]*)?(\+\+)$/i, (msg) ->

0 commit comments

Comments
 (0)