function shouldComplain(message) {
  // Replace all ok text from the whitelist with nothing and replace user ids
  // with their names
  const filteredText = _.reduce(
    whitelist,
    (res, okText) => res.replace(okText, ''),
    message.text,
  ).replace(/<@(\w*)>/, (match, id) => rtm.dataStore.getUserById(id).name);
  //console.log('Post whitelist: ' + filteredText);
  return /(c|с|ç|¢|ć|ĉ|Č)/ig.test(filteredText);
}
/**
 * Returns whether or not the bot should complain
 * @param {String} text
 * @return {Boolean} true if the bot should complain
 */
Returns whether or not the bot should complain
@param {String} text
@return {Boolean} true if the bot should complain
Returns whether or not the bot should complain @param { String } text @return { Boolean } true if the bot should complain
function shouldComplain(message) {
  const filteredText = _.reduce(
    whitelist,
    (res, okText) => res.replace(okText, ''),
    message.text,
  ).replace(/<@(\w*)>/, (match, id) => rtm.dataStore.getUserById(id).name);
  return /(c|с|ç|¢|ć|ĉ|Č)/ig.test(filteredText);
}
function shouldComplain ( message ) { const filteredText = _ . reduce ( whitelist , ( res , okText ) => res . replace ( okText , '' ) , message . text , ) . replace ( / <@(\w*)> / , ( match , id ) => rtm . dataStore . getUserById ( id ) . name ) ; return / (c|с|ç|¢|ć|ĉ|Č)/ig.te s t( f ilte r edText); }
Returns whether or not the bot should complain
 @param {String} text
 @return {Boolean} true if the bot should complain
Returns whether or not the bot should complain @param { String } text @return { Boolean } true if the bot should complain
// Replace all ok text from the whitelist with nothing and replace user ids // with their names //console.log('Post whitelist: ' + filteredText);