src/main.js
function deleteTopic(res, topic) {
    const keyTopic = topic.toLowerCase();
    if (taboo.delete(keyTopic)) {
      res.reply(capitalize(`${topic} is no longer taboo`));
      saveList(res.robot.brain);
    } else {
      res.reply(`Oops, ${topic} is not taboo`);
    }
  }
function deleteTopic(res, topic) {
    const keyTopic = topic.toLowerCase();
    if (taboo.delete(keyTopic)) {
      res.reply(capitalize(`${topic} is no longer taboo`));
      saveList(res.robot.brain);
    } else {
      res.reply(`Oops, ${topic} is not taboo`);
    }
  }
function deleteTopic ( res , topic ) { const keyTopic = topic . toLowerCase ( ) ; if ( taboo . delete ( keyTopic ) ) { res . reply ( capitalize ( ` ${ topic } ` ) ) ; saveList ( res . robot . brain ) ; } else { res . reply ( ` ${ topic } ` ) ; } }
Removes a topic from the taboo list.
Removes a topic from the taboo list .