From 1c750c41d2913c19b67078ca7f972afe62640e31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=E1=BB=AB=20Th=E1=BA=AFng=20Ph=C3=A1t?= <81029660+phatdev12@users.noreply.github.com> Date: Thu, 14 Apr 2022 11:57:18 +0700 Subject: [PATCH 01/13] Delete commands.json --- commands.json | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 commands.json diff --git a/commands.json b/commands.json deleted file mode 100644 index fd26dcb..0000000 --- a/commands.json +++ /dev/null @@ -1,3 +0,0 @@ -[ - "ping" -] \ No newline at end of file From f2ee6a1fc7e90eac3943625ee033ddc310a61ef1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=E1=BB=AB=20Th=E1=BA=AFng=20Ph=C3=A1t?= <81029660+phatdev12@users.noreply.github.com> Date: Thu, 14 Apr 2022 11:58:51 +0700 Subject: [PATCH 02/13] Create ping.js --- ping.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 ping.js diff --git a/ping.js b/ping.js new file mode 100644 index 0000000..5459c44 --- /dev/null +++ b/ping.js @@ -0,0 +1 @@ +message.reply("Pong!") From 260743d6195ec5975d9db926fed5bfb66327d696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=E1=BB=AB=20Th=E1=BA=AFng=20Ph=C3=A1t?= <81029660+phatdev12@users.noreply.github.com> Date: Thu, 14 Apr 2022 13:57:03 +0700 Subject: [PATCH 03/13] Create hello.js --- hello.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 hello.js diff --git a/hello.js b/hello.js new file mode 100644 index 0000000..1444f79 --- /dev/null +++ b/hello.js @@ -0,0 +1 @@ +message.reply("hi"); From 814598c41bd99611568775cc6dd4bfacc1f5cb3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=E1=BB=AB=20Th=E1=BA=AFng=20Ph=C3=A1t?= <81029660+phatdev12@users.noreply.github.com> Date: Thu, 14 Apr 2022 14:08:03 +0700 Subject: [PATCH 04/13] Create say.js --- say.js | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 say.js diff --git a/say.js b/say.js new file mode 100644 index 0000000..6b83c0c --- /dev/null +++ b/say.js @@ -0,0 +1,2 @@ +const text = args.slice().join(""); +message.reply(`Say: ${text}`) From e8b83dd5b441f4e82a98cb2cdef1145cf2b8de79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=E1=BB=AB=20Th=E1=BA=AFng=20Ph=C3=A1t?= <81029660+phatdev12@users.noreply.github.com> Date: Thu, 14 Apr 2022 14:10:31 +0700 Subject: [PATCH 05/13] Update say.js --- say.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/say.js b/say.js index 6b83c0c..7f9405d 100644 --- a/say.js +++ b/say.js @@ -1,2 +1,3 @@ const text = args.slice().join(""); -message.reply(`Say: ${text}`) +if(text.includes("@everyone" || "@here") return message.reply("Please don't ping everyone"); +message.reply(`Say: ${text}`); From 5b4eacaf8c21b38f5af0ccfd5fb78b58aa9c9142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=E1=BB=AB=20Th=E1=BA=AFng=20Ph=C3=A1t?= <81029660+phatdev12@users.noreply.github.com> Date: Thu, 14 Apr 2022 14:16:41 +0700 Subject: [PATCH 06/13] Update say.js --- say.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/say.js b/say.js index 7f9405d..34af891 100644 --- a/say.js +++ b/say.js @@ -1,3 +1,3 @@ const text = args.slice().join(""); -if(text.includes("@everyone" || "@here") return message.reply("Please don't ping everyone"); +if(text.includes("@everyone" || "@here")) return message.reply("Please don't ping everyone"); message.reply(`Say: ${text}`); From 7ff6b8f731b08d53901f649e13340036700ae75a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=E1=BB=AB=20Th=E1=BA=AFng=20Ph=C3=A1t?= <81029660+phatdev12@users.noreply.github.com> Date: Thu, 14 Apr 2022 14:20:54 +0700 Subject: [PATCH 07/13] Delete say.js --- say.js | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 say.js diff --git a/say.js b/say.js deleted file mode 100644 index 34af891..0000000 --- a/say.js +++ /dev/null @@ -1,3 +0,0 @@ -const text = args.slice().join(""); -if(text.includes("@everyone" || "@here")) return message.reply("Please don't ping everyone"); -message.reply(`Say: ${text}`); From 1558dd9a68f0634980ceaa813148e3b50896c993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=E1=BB=AB=20Th=E1=BA=AFng=20Ph=C3=A1t?= <81029660+phatdev12@users.noreply.github.com> Date: Thu, 14 Apr 2022 14:21:09 +0700 Subject: [PATCH 08/13] Create say.js --- say.js | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 say.js diff --git a/say.js b/say.js new file mode 100644 index 0000000..96d2a2a --- /dev/null +++ b/say.js @@ -0,0 +1,3 @@ +const text = args.slice().join(" "); +if(text.includes("@everyone" || "@here")) return message.reply("Please don't ping everyone"); +message.reply(`Say: ${text}`); From 8f70fd52ce4de3ec20c67b33375954787f76edba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=E1=BB=AB=20Th=E1=BA=AFng=20Ph=C3=A1t?= <81029660+phatdev12@users.noreply.github.com> Date: Thu, 14 Apr 2022 14:28:09 +0700 Subject: [PATCH 09/13] Update say.js --- say.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/say.js b/say.js index 96d2a2a..b75491c 100644 --- a/say.js +++ b/say.js @@ -1,3 +1,5 @@ const text = args.slice().join(" "); -if(text.includes("@everyone" || "@here")) return message.reply("Please don't ping everyone"); +if(text.includes("@everyone" || "@here")){ + return false; +} message.reply(`Say: ${text}`); From 062fa89a6131061c82cca8239823722456a0e8fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=E1=BB=AB=20Th=E1=BA=AFng=20Ph=C3=A1t?= <81029660+phatdev12@users.noreply.github.com> Date: Thu, 14 Apr 2022 14:32:22 +0700 Subject: [PATCH 10/13] Update say.js --- say.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/say.js b/say.js index b75491c..c661551 100644 --- a/say.js +++ b/say.js @@ -1,5 +1,7 @@ -const text = args.slice().join(" "); -if(text.includes("@everyone" || "@here")){ - return false; +function run(client, message, args){ + const text = args.slice().join(" "); + if(text.includes("@everyone" || "@here")){ + return false; + } + message.reply(`Say: ${text}`); } -message.reply(`Say: ${text}`); From 836c796f2d314df075f6cea4698f52c628e6daaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=E1=BB=AB=20Th=E1=BA=AFng=20Ph=C3=A1t?= <81029660+phatdev12@users.noreply.github.com> Date: Thu, 14 Apr 2022 14:35:11 +0700 Subject: [PATCH 11/13] Update say.js --- say.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/say.js b/say.js index c661551..b75491c 100644 --- a/say.js +++ b/say.js @@ -1,7 +1,5 @@ -function run(client, message, args){ - const text = args.slice().join(" "); - if(text.includes("@everyone" || "@here")){ - return false; - } - message.reply(`Say: ${text}`); +const text = args.slice().join(" "); +if(text.includes("@everyone" || "@here")){ + return false; } +message.reply(`Say: ${text}`); From 399b798f4480fcddf1afd306670400f4dac05aae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=E1=BB=AB=20Th=E1=BA=AFng=20Ph=C3=A1t?= <81029660+phatdev12@users.noreply.github.com> Date: Thu, 14 Apr 2022 14:43:43 +0700 Subject: [PATCH 12/13] Create sayTest.js --- sayTest.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 sayTest.js diff --git a/sayTest.js b/sayTest.js new file mode 100644 index 0000000..b75491c --- /dev/null +++ b/sayTest.js @@ -0,0 +1,5 @@ +const text = args.slice().join(" "); +if(text.includes("@everyone" || "@here")){ + return false; +} +message.reply(`Say: ${text}`); From 9f23e8760ecad8533c3701bcef6a3f9d1ae5d55f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=E1=BB=AB=20Th=E1=BA=AFng=20Ph=C3=A1t?= <81029660+phatdev12@users.noreply.github.com> Date: Thu, 14 Apr 2022 20:26:22 +0700 Subject: [PATCH 13/13] Update say.js --- say.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/say.js b/say.js index b75491c..6dba31d 100644 --- a/say.js +++ b/say.js @@ -1,5 +1,6 @@ const text = args.slice().join(" "); +if(!text) return message.reply("Please enter something to say!") if(text.includes("@everyone" || "@here")){ - return false; + return message.reply("Please don't ping everyone"); } message.reply(`Say: ${text}`);