From 50b09e6463531f62ff56c967a9b62022f8ba9e6b Mon Sep 17 00:00:00 2001
From: BradGamez <33333609+BradGamez@users.noreply.github.com>
Date: Sun, 23 Feb 2025 17:52:58 -0500
Subject: [PATCH 1/4] Create BotlistMe.ts
Adding new bot list. Here's the docs https://docs.botlist.me/
---
src/Interface/Lists/BotlistMe.ts | 64 ++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
create mode 100644 src/Interface/Lists/BotlistMe.ts
diff --git a/src/Interface/Lists/BotlistMe.ts b/src/Interface/Lists/BotlistMe.ts
new file mode 100644
index 00000000..5e9fc318
--- /dev/null
+++ b/src/Interface/Lists/BotlistMe.ts
@@ -0,0 +1,64 @@
+import { Service, ServicePostOptions } from '../Service'
+import { Util, IDResolvable } from '../../Utils/Util'
+
+/**
+ * Represents the BotlistMe service.
+ * @see https://docs.botlist.me
+ */
+export default class BotlistMe extends Service {
+ /** The values that can be used to select the service. */
+ static get aliases() {
+ return ['botlistme', 'botlist.me']
+ }
+
+ /** The logo URL. */
+ static get logoURL() {
+ return 'https://docs.botlist.me/icon.png'
+ }
+
+ /** Service's name. */
+ static get serviceName() {
+ return 'BotlistMe'
+ }
+
+ /** The website URL. */
+ static get websiteURL() {
+ return 'https://botlist.me/'
+ }
+
+ /** The base URL of the service's API. */
+ static get baseURL() {
+ return 'https://api.botlist.me/api/v1'
+ }
+
+ /**
+ * Posts statistics to this service.
+ * Shard data posting is not supported for this service.
+ * @param options The options of the request.
+ */
+ static post(options: ServicePostOptions) {
+ const { token, clientID, serverCount } = options
+ return super._post({
+ method: 'post',
+ url: `/bots/${Util.resolveID(clientID)}/stats/`,
+ headers: { Authorization: token },
+ data: { server_count: Util.resolveCount(serverCount) }
+ })
+ }
+
+ /**
+ * Gets whether a user has voted for a bot.
+ * @param botID The bot's ID.
+ * @param userID The user's ID.
+ */
+ userVoted(botID: IDResolvable, userID: IDResolvable) {
+ return this._request(
+ {
+ url: `/bots/${Util.resolveID(botID)}/voted`,
+ headers: { Authorization: this.token },
+ params: { user_id: Util.resolveID(userID) }
+ },
+ { requiresToken: true }
+ )
+ }
+}
From 3909089c60d50bc19185edfdefda7893d8dc66d2 Mon Sep 17 00:00:00 2001
From: BradGamez <33333609+BradGamez@users.noreply.github.com>
Date: Sun, 23 Feb 2025 17:56:36 -0500
Subject: [PATCH 2/4] Update ListIndex.ts
---
src/Interface/ListIndex.ts | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/Interface/ListIndex.ts b/src/Interface/ListIndex.ts
index edffcb4d..1f9c4816 100644
--- a/src/Interface/ListIndex.ts
+++ b/src/Interface/ListIndex.ts
@@ -4,6 +4,7 @@
import BladeList from './Lists/BladeList'
import Blist from './Lists/Blist'
+import BotlistMe from './Lists/BotlistMe'
import BotsOnDiscord from './Lists/BotsOnDiscord'
import Carbon from './Lists/Carbon'
import DBots from './Lists/DBots'
@@ -39,6 +40,8 @@ export const serviceList = {
'bladelist.gg': BladeList,
'blist': Blist,
'blist.xyz': Blist,
+ 'botlistme': BotlistMe,
+ 'botlist.me': BotlistMe,
'botsondiscord': BotsOnDiscord,
'bots.ondiscord.xyz': BotsOnDiscord,
'carbonitex': Carbon,
From 92cc73fdc3b02543febcbe969c8a5ea882735af8 Mon Sep 17 00:00:00 2001
From: BradGamez <33333609+BradGamez@users.noreply.github.com>
Date: Sun, 23 Feb 2025 18:01:35 -0500
Subject: [PATCH 3/4] Update services.md
---
docs/general/services.md | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/docs/general/services.md b/docs/general/services.md
index b57f504a..f157418b 100644
--- a/docs/general/services.md
+++ b/docs/general/services.md
@@ -28,6 +28,19 @@ Class: [Blist](/#/docs/main/$$$ref/class/Blist)
Website: https://blist.xyz
+
+
+
+
+
+
+
BotlistMe
+
+Keys: `botlistme`, `botlist.me`
+Class: [BotlistMe](/#/docs/main/$$$ref/class/BotlistMe)
+Website: https://botlist.me
+
+
@@ -374,4 +387,4 @@ Website: https://wonderbotlist.com/en
Keys: `yabl`, `yabl.xyz`
Class: [YABL](/#/docs/main/$$$ref/class/YABL)
Website: https://yabl.xyz/
-
\ No newline at end of file
+
From c8ecf167f7e12feb602d00dc74cf7bc8e1b9d377 Mon Sep 17 00:00:00 2001
From: BradGamez <33333609+BradGamez@users.noreply.github.com>
Date: Sun, 23 Feb 2025 18:04:56 -0500
Subject: [PATCH 4/4] Update BotlistMe.ts
---
src/Interface/Lists/BotlistMe.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Interface/Lists/BotlistMe.ts b/src/Interface/Lists/BotlistMe.ts
index 5e9fc318..ab5afb4c 100644
--- a/src/Interface/Lists/BotlistMe.ts
+++ b/src/Interface/Lists/BotlistMe.ts
@@ -13,7 +13,7 @@ export default class BotlistMe extends Service {
/** The logo URL. */
static get logoURL() {
- return 'https://docs.botlist.me/icon.png'
+ return 'https://botlist.me/icon.png'
}
/** Service's name. */