From 63911f43b0ee388cba571a14c9ed313ccc15b23b Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sat, 9 Sep 2023 18:49:44 +0100 Subject: [PATCH 1/6] Fix reoll button not working --- src/buttonEvents/Reroll.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/buttonEvents/Reroll.ts b/src/buttonEvents/Reroll.ts index e5aeed9..c1a54ea 100644 --- a/src/buttonEvents/Reroll.ts +++ b/src/buttonEvents/Reroll.ts @@ -28,6 +28,8 @@ export default class Reroll extends ButtonEvent { const image = readFileSync(randomCard.Path); + await interaction.deferReply(); + const attachment = new AttachmentBuilder(image, { name: randomCard.FileName }); const embed = new EmbedBuilder() From 9058942ea54395f522c04eae6645a6ea20d9d84e Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sat, 9 Sep 2023 18:52:57 +0100 Subject: [PATCH 2/6] Update version in .env to 0.1.2 --- .dev.env | 4 ++-- .prod.env | 4 ++-- .stage.env | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.dev.env b/.dev.env index 1635809..074e386 100644 --- a/.dev.env +++ b/.dev.env @@ -7,7 +7,7 @@ # any secret values. BOT_TOKEN= -BOT_VER=0.1.1 DEV +BOT_VER=0.1.2 DEV BOT_AUTHOR=Vylpes BOT_OWNERID=147392775707426816 BOT_CLIENTID=682942374040961060 @@ -26,4 +26,4 @@ DB_AUTH_PASS=dev DB_SYNC=true DB_LOGGING=true -DB_CARD_FILE=:memory: \ No newline at end of file +DB_CARD_FILE=:memory: diff --git a/.prod.env b/.prod.env index 17fc883..2f890c3 100644 --- a/.prod.env +++ b/.prod.env @@ -7,7 +7,7 @@ # any secret values. BOT_TOKEN= -BOT_VER=0.1.1 +BOT_VER=0.1.2 BOT_AUTHOR=Vylpes BOT_OWNERID=147392775707426816 BOT_CLIENTID=1093810443589529631 @@ -26,4 +26,4 @@ DB_AUTH_PASS=prod DB_SYNC=false DB_LOGGING=false -DB_CARD_FILE=:memory: \ No newline at end of file +DB_CARD_FILE=:memory: diff --git a/.stage.env b/.stage.env index 39afa54..05cfb66 100644 --- a/.stage.env +++ b/.stage.env @@ -7,7 +7,7 @@ # any secret values. BOT_TOKEN= -BOT_VER=0.1.1 BETA +BOT_VER=0.1.2 BETA BOT_AUTHOR=Vylpes BOT_OWNERID=147392775707426816 BOT_CLIENTID=1147976642942214235 @@ -26,4 +26,4 @@ DB_AUTH_PASS=stage DB_SYNC=false DB_LOGGING=false -DB_CARD_FILE=:memory: \ No newline at end of file +DB_CARD_FILE=:memory: From f483467ba5bcfda03f25da79aee005b17e9e2849 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sat, 9 Sep 2023 18:53:08 +0100 Subject: [PATCH 3/6] v0.1.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 92b174d..40c6340 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "card-drop", - "version": "0.1.1", + "version": "0.1.2", "main": "./dist/bot.js", "typings": "./dist", "scripts": { From b370c6f05e8ccf150bca3b83db22dc1da746fef4 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sat, 9 Sep 2023 18:54:29 +0100 Subject: [PATCH 4/6] Fix drone script --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index a2752f4..35df56b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,7 +7,7 @@ steps: - name: deploy image: appleboy/drone-ssh settings: - host: 192.168.68.121 + host: 192.168.68.120 username: vylpes password: from_secret: ssh_password @@ -28,7 +28,7 @@ steps: - name: stage image: appleboy/drone-ssh settings: - host: 192.168.68.121 + host: 192.168.68.120 username: vylpes password: from_secret: ssh_password From 0596e01b8d336f3262d54173e03196810692d2a6 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sat, 9 Sep 2023 18:55:12 +0100 Subject: [PATCH 5/6] .env to 0.1.3 --- .dev.env | 2 +- .prod.env | 2 +- .stage.env | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.dev.env b/.dev.env index 074e386..794bc22 100644 --- a/.dev.env +++ b/.dev.env @@ -7,7 +7,7 @@ # any secret values. BOT_TOKEN= -BOT_VER=0.1.2 DEV +BOT_VER=0.1.3 DEV BOT_AUTHOR=Vylpes BOT_OWNERID=147392775707426816 BOT_CLIENTID=682942374040961060 diff --git a/.prod.env b/.prod.env index 2f890c3..52afc4f 100644 --- a/.prod.env +++ b/.prod.env @@ -7,7 +7,7 @@ # any secret values. BOT_TOKEN= -BOT_VER=0.1.2 +BOT_VER=0.1.3 BOT_AUTHOR=Vylpes BOT_OWNERID=147392775707426816 BOT_CLIENTID=1093810443589529631 diff --git a/.stage.env b/.stage.env index 05cfb66..33a2db6 100644 --- a/.stage.env +++ b/.stage.env @@ -7,7 +7,7 @@ # any secret values. BOT_TOKEN= -BOT_VER=0.1.2 BETA +BOT_VER=0.1.3 BETA BOT_AUTHOR=Vylpes BOT_OWNERID=147392775707426816 BOT_CLIENTID=1147976642942214235 From 5970a4fe2d9bd8f9c50a195cfb8e883afac27d32 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sat, 9 Sep 2023 18:55:19 +0100 Subject: [PATCH 6/6] v0.1.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 40c6340..8229147 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "card-drop", - "version": "0.1.2", + "version": "0.1.3", "main": "./dist/bot.js", "typings": "./dist", "scripts": {