How to use the monochrome-bot.PublicError function in monochrome-bot

To help you get started, we’ve selected a few monochrome-bot examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mistval / kotoba / src / common / glosbe_word_search.js View on Github external
}).catch(err => {
    throw new PublicError('Sorry, Glosbe dictionary is not responding. Please try again later.', 'Error', err);
  }).then(data => {
    if (data.result !== 'ok') {
github mistval / kotoba / bot / src / common / glosbe_word_search.js View on Github external
}).catch(err => {
    throw new PublicError('Sorry, Glosbe dictionary is not responding. Please try again later.', 'Error', err);
  }).then(data => {
    if (data.result !== 'ok') {