Commit 83176e5d authored by Anastasios Kalogeropoulos's avatar Anastasios Kalogeropoulos
Browse files

replace amp with empty

parent c57dd7cb
......@@ -113,6 +113,10 @@ rtm.on('message', (message) => {
return;
}
console.log(`(channel:${message.channel}) ${message.user} says: ${message.text}`);
if(message.text.indexOf('amp;' > -1)) {
message.text = message.text.replace('amp;', '');
}
console.log(`(channel:${message.channel}) ${message.user} says: ${message.text}`);
currentClient.saveMessageInHistory(message.text, "OUTGOING");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment