From 7c563811414d8311c8efd8b20d7c489da68b9d96 Mon Sep 17 00:00:00 2001 From: Thijs Eilander Date: Sun, 18 Jun 2023 22:51:35 +0200 Subject: [PATCH 1/4] due to this test, when starting with a new database the bot exits upon start, so there is no possibility to add a new entry in the database at all. --- modules/dbfn.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/modules/dbfn.js b/modules/dbfn.js index 4d127ea..49bdd07 100755 --- a/modules/dbfn.js +++ b/modules/dbfn.js @@ -56,11 +56,6 @@ module.exports = { db.end(); return; } - if (res.length == 0) { - reject("There is no database entry for your guild yet. Try running /setup"); - db.end(); - return; - } row = res[0]; const guildInfo = new GuildInfo() .setIds(row.guild_id, row.owner_id) @@ -304,4 +299,4 @@ module.exports = { }); }); } -}; \ No newline at end of file +}; From e8f16d8fea1f210768673f74a2b71479d6bf3678 Mon Sep 17 00:00:00 2001 From: Thijs Eilander Date: Mon, 19 Jun 2023 00:02:47 +0200 Subject: [PATCH 2/4] change description /notifications update to /relay update --- data/strings.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/strings.json b/data/strings.json index 1221673..4c5582b 100755 --- a/data/strings.json +++ b/data/strings.json @@ -75,7 +75,7 @@ "reset": "All guild configuration information has been removed from the database.", "resetError": "There was a problem deleting your guild information, contact @voidf1sh#0420 for help.", "noRoleMenu": "A role menu has not been created for this guild yet. Run to create a role menu.", - "optout": "Notification relay has been disabled, to re-enable the relay use with no options." + "optout": "Notification relay has been disabled, to re-enable the relay use with no options." }, "notifications": { "water": "is ready to be watered again!", @@ -85,4 +85,4 @@ "growATree": "972637072991068220" }, "temp": {} -} \ No newline at end of file +} From f2560a081ef1f345cc361bafa49c81d61d4492fe Mon Sep 17 00:00:00 2001 From: Thijs Eilander Date: Mon, 19 Jun 2023 03:52:33 +0200 Subject: [PATCH 3/4] added my own id into the dev team --- data/config.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/data/config.json b/data/config.json index 2c87ff6..2098490 100755 --- a/data/config.json +++ b/data/config.json @@ -8,7 +8,8 @@ "rankings": [], "devTeamIds": [ "481933290912350209", - "269249959973355520" + "269249959973355520", + "448606738669633536", ], "ownerId": "481933290912350209" -} \ No newline at end of file +} From e3fb4da9f61ab834e589691c6022e300a98b5e3c Mon Sep 17 00:00:00 2001 From: Thijs Eilander Date: Mon, 19 Jun 2023 03:58:24 +0200 Subject: [PATCH 4/4] typo, it's late --- data/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/config.json b/data/config.json index 2098490..873d7f0 100755 --- a/data/config.json +++ b/data/config.json @@ -9,7 +9,7 @@ "devTeamIds": [ "481933290912350209", "269249959973355520", - "448606738669633536", + "448606738669633536" ], "ownerId": "481933290912350209" }