diff --git a/commands/template b/commands/template index e87841d..527c41e 100644 --- a/commands/template +++ b/commands/template @@ -1,7 +1,7 @@ module.exports = { - name: "", - description: "", + name: '', + description: '', execute(message, args) { - message.channel.send(""); + message.channel.send(''); } } \ No newline at end of file diff --git a/commands/test-textconv.js b/commands/test-textconv.js new file mode 100644 index 0000000..9d1f1b3 --- /dev/null +++ b/commands/test-textconv.js @@ -0,0 +1,12 @@ +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); + } +} \ No newline at end of file