Skip to content

Commit

Permalink
fix(core): umm depr warning doesn't appear on start (resolve #593)
Browse files Browse the repository at this point in the history
  • Loading branch information
epaminond committed Jun 6, 2018
1 parent d647813 commit 6512246
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions packages/core/botpress/src/botpress.js
Expand Up @@ -299,12 +299,6 @@ class botpress {
configManager,
cloud,
renderers,
get umm() {
logger.warn(
'DEPRECATION NOTICE – bp.umm is deprecated and will be removed in `botpress@3.0` – Please see bp.renderers instead.'
)
return renderers
},
users,
ghostManager,
contentManager,
Expand All @@ -315,6 +309,13 @@ class botpress {
skills: skillsManager
})

Object.defineProperty(this, 'umm', {
get() {
logger.warn('DEPRECATION NOTICE – bp.umm is deprecated and will be removed – Please see bp.renderers instead.')
return renderers
}
})

const loadedModules = await modules._load(moduleDefinitions, this)

this.stats.track('bot', 'modules', 'loaded', loadedModules.length)
Expand Down

0 comments on commit 6512246

Please sign in to comment.