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

Commit 271569f

Browse files
Move deprecation logic to hubot core
1 parent 94ecbf9 commit 271569f

23 files changed

+0
-132
lines changed

src/hubot-scripts.coffee

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

src/scripts/9gag.coffee

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,10 @@
1717
# Contributors:
1818
# dedeibel (gif support)
1919

20-
Path = require("path")
21-
HubotScripts = require(Path.resolve(__dirname, "..", "hubot-scripts"))
22-
2320
Select = require( "soupselect" ).select
2421
HTMLParser = require "htmlparser"
2522

2623
module.exports = (robot)->
27-
HubotScripts.deprecate(robot, __filename)
2824

2925
robot.respond /9gag( me)?/i, (message)->
3026
send_meme message, false, (title, src)->

src/scripts/ambush.coffee

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,12 @@
1313
# Author:
1414
# jmoses
1515

16-
Path = require("path")
17-
HubotScripts = require(Path.resolve(__dirname, "..", "hubot-scripts"))
18-
1916
appendAmbush = (data, toUser, fromUser, message) ->
2017
data[toUser.name] or= []
2118

2219
data[toUser.name].push [fromUser.name, message]
2320

2421
module.exports = (robot) ->
25-
HubotScripts.deprecate(robot, __filename)
2622

2723
robot.brain.on 'loaded', =>
2824
robot.brain.data.ambushes ||= {}

src/scripts/asana.coffee

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
# abh1nav
2424
# rajiv
2525

26-
Path = require("path")
27-
HubotScripts = require(Path.resolve(__dirname, "..", "hubot-scripts"))
28-
2926
url = 'https://app.asana.com/api/1.0'
3027

3128
workspace = process.env.HUBOT_ASANA_WORKSPACE_ID
@@ -66,7 +63,6 @@ addTask = (msg, taskName, path, params, userAcct) ->
6663
msg.send "Error creating task."
6764

6865
module.exports = (robot) ->
69-
HubotScripts.deprecate(robot, __filename)
7066
# Add a task
7167
robot.hear /^(todo|task):\s?(@\w+)?(.*)/i, (msg) ->
7268
taskName = msg.match[3]

src/scripts/ascii.coffee

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@
1212
#
1313
# Author:
1414
# atmos
15-
Path = require("path")
16-
HubotScripts = require(Path.resolve(__dirname, "..", "hubot-scripts"))
17-
1815
module.exports = (robot) ->
19-
HubotScripts.deprecate(robot, __filename)
2016
robot.respond /ascii( me)? (.+)/i, (msg) ->
2117
msg
2218
.http("http://asciime.herokuapp.com/generate_ascii")

src/scripts/auth.coffee

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@
2424
# Author:
2525
# alexwilliamsca
2626

27-
Path = require("path")
28-
HubotScripts = require(Path.resolve(__dirname, "..", "hubot-scripts"))
29-
3027
module.exports = (robot) ->
31-
HubotScripts.deprecate(robot, __filename)
3228

3329
admin = process.env.HUBOT_AUTH_ADMIN
3430

src/scripts/darksky.coffee

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@
1818
#
1919
# Author:
2020
# kyleslattery
21-
Path = require("path")
22-
HubotScripts = require(Path.resolve(__dirname, "..", "hubot-scripts"))
23-
2421
module.exports = (robot) ->
25-
HubotScripts.deprecate(robot, __filename)
2622

2723
robot.respond /weather ?(.+)?/i, (msg) ->
2824
location = msg.match[1] || process.env.HUBOT_DARK_SKY_DEFAULT_LOCATION

src/scripts/factoid.coffee

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
# Author:
2323
# arthurkalm
2424

25-
Path = require("path")
26-
HubotScripts = require(Path.resolve(__dirname, "..", "hubot-scripts"))
27-
2825
class Factoids
2926
constructor: (@robot) ->
3027
@robot.brain.on 'loaded', =>
@@ -93,8 +90,6 @@ class Factoids
9390
this.niceGet match[1]
9491

9592
module.exports = (robot) ->
96-
HubotScripts.deprecate(robot, __filename)
97-
9893
factoids = new Factoids robot
9994

10095
robot.hear /^~(.+)/i, (msg) ->

src/scripts/gitlab.coffee

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,10 @@
2525
# Author:
2626
# omribahumi
2727

28-
path = require("path")
29-
HubotScripts = require(Path.resolve(__dirname, "..", "hubot-scripts"))
3028
url = require 'url'
3129
querystring = require 'querystring'
3230

3331
module.exports = (robot) ->
34-
HubotScripts.deprecate(robot, __filename)
3532

3633
gitlabChannel = process.env.GITLAB_CHANNEL or "#gitlab"
3734
debug = process.env.GITLAB_DEBUG?

src/scripts/google.coffee

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@
1313
# Author:
1414
# searls
1515

16-
Path = require("path")
17-
HubotScripts = require(Path.resolve(__dirname, "..", "hubot-scripts"))
18-
1916
module.exports = (robot) ->
20-
HubotScripts.deprecate(robot, __filename)
21-
2217
robot.respond /(google)( me)? (.*)/i, (msg) ->
2318
googleMe msg, msg.match[3], (url) ->
2419
msg.send url

0 commit comments

Comments
 (0)