nodbot/commands/test-textconv.js

12 lines
344 B
JavaScript
Raw Normal View History

2021-06-29 01:42:22 +00:00
module.exports = {
name: "test-textconv",
description: "Give the bot some text to convert and send back.",
execute(message, args) {
console.log(args);
const textPre = args.join(' ');
const textPost1 = textPre.replace(/\n/,'\n');
const textPost2 = textPost1.replace(/\'/,'\'');
console.log(textPost1);
console.log(textPost2);
}
}