Skip to content

Commit

Permalink
imports hubot dynamically for extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane DeWael committed Oct 22, 2018
1 parent a442154 commit 18c9840
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/extensions.coffee
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{Robot} = require.main.require "hubot"

# Requires the es2015 version of Hubot for v3 or higher so the correct prototype is updated
if Robot.name == "CoffeeScriptCompatibleClass"
{Robot} = require.main.require "hubot/es2015"

{ReactionMessage, PresenceMessage} = require "./message"

###*
Expand Down

0 comments on commit 18c9840

Please sign in to comment.