From 48188db0b09f66eed2455a2da7c871b15fa70afa Mon Sep 17 00:00:00 2001 From: = Date: Mon, 28 Jun 2021 21:42:22 -0400 Subject: [PATCH] misc --- commands/template | 6 +++--- commands/test-textconv.js | 12 ++++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 commands/test-textconv.js 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