diff --git a/docs/general/services.md b/docs/general/services.md index e77fd592..8c05e427 100644 --- a/docs/general/services.md +++ b/docs/general/services.md @@ -1,17 +1,4 @@ -# Supported Services (32) - -
-

- arcane logo -

- - -

Arcane Bot List

- -Keys: `arcane`, `arcane-center.xyz` -Class: [Arcane](/#/docs/main/$$$ref/class/Arcane) -Website: https://arcane-center.xyz -
+# Supported Services (26)

@@ -52,19 +39,6 @@ Class: [Blist](/#/docs/main/$$$ref/class/Blist) Website: https://blist.xyz

-
-

- botsdatabase logo -

- - -

BotsDataBase

- -Keys: `botsdatabase`, `botsdatabase.com` -Class: [BotsDataBase](/#/docs/main/$$$ref/class/BotsDataBase) -Website: https://botsdatabase.com -
-

botsfordiscord logo @@ -118,19 +92,6 @@ Class: [DBots](/#/docs/main/$$$ref/class/DBots) Website: https://dbots.co/

-
-

- discordappsdev logo -

- - -

Discord Apps

- -Keys: `discordappsdev`, `discordapps.dev` -Class: [DiscordAppsDev](/#/docs/main/$$$ref/class/DiscordAppsDev) -Website: https://discordapps.dev -
-

discordboats logo @@ -144,19 +105,6 @@ Class: [DiscordBoats](/#/docs/main/$$$ref/class/DiscordBoats) Website: https://discord.boats

-
-

- discordbotdirectory logo -

- - -

Discord Bot Directory

- -Keys: `discordbotdirectory`, `discordbotdirectory.net` -Class: [DiscordBotDirectory](/#/docs/main/$$$ref/class/DiscordBotDirectory) -Website: https://discordbotdirectory.net -
-

discordbotlist logo @@ -315,32 +263,6 @@ Class: [InfinityBotList](/#/docs/main/$$$ref/class/InfinityBotList) Website: https://infinitybotlist.com/

-
-

- listmybots logo -

- - -

List My Bots

- -Keys: `listmybots`, `listmybots.com` -Class: [ListMyBots](/#/docs/main/$$$ref/class/ListMyBots) -Website: https://listmybots.com/ -
- -
-

- paradisebots logo -

- - -

Paradise Bots

- -Keys: `paradisebots`, `paradisebots.net` -Class: [ParadiseBots](/#/docs/main/$$$ref/class/ParadiseBots) -Website: https://paradisebots.net/ -
-

spacebotslist logo diff --git a/src/Interface/ListIndex.ts b/src/Interface/ListIndex.ts index cdb5f5c2..f30aa9a2 100644 --- a/src/Interface/ListIndex.ts +++ b/src/Interface/ListIndex.ts @@ -2,18 +2,14 @@ // // This section is automatically generated by the 'build:source' script, any change will be overwritten -import Arcane from './Lists/Arcane' import AstroBotList from './Lists/AstroBotList' import BladeBotList from './Lists/BladeBotList' import Blist from './Lists/Blist' -import BotsDataBase from './Lists/BotsDataBase' import BotsForDiscord from './Lists/BotsForDiscord' import BotsOnDiscord from './Lists/BotsOnDiscord' import Carbon from './Lists/Carbon' import DBots from './Lists/DBots' -import DiscordAppsDev from './Lists/DiscordAppsDev' import DiscordBoats from './Lists/DiscordBoats' -import DiscordBotDirectory from './Lists/DiscordBotDirectory' import DiscordBotList from './Lists/DiscordBotList' import DiscordBotsCo from './Lists/DiscordBotsCo' import DiscordBotsGG from './Lists/DiscordBotsGG' @@ -26,8 +22,6 @@ import Disforge from './Lists/Disforge' import FatesList from './Lists/FatesList' import GlennBotList from './Lists/GlennBotList' import InfinityBotList from './Lists/InfinityBotList' -import ListMyBots from './Lists/ListMyBots' -import ParadiseBots from './Lists/ParadiseBots' import SpaceBotsList from './Lists/SpaceBotsList' import TopCord from './Lists/TopCord' import TopGG from './Lists/TopGG' @@ -37,16 +31,12 @@ import YABL from './Lists/YABL' // prettier-ignore export const serviceList = { - 'arcane': Arcane, - 'arcane-center.xyz': Arcane, 'astrobotlist': AstroBotList, 'botlists.com': AstroBotList, 'bladebotlist': BladeBotList, 'bladebotlist.xyz': BladeBotList, 'blist': Blist, 'blist.xyz': Blist, - 'botsdatabase': BotsDataBase, - 'botsdatabase.com': BotsDataBase, 'botsfordiscord': BotsForDiscord, 'botsfordiscord.com': BotsForDiscord, 'botsondiscord': BotsOnDiscord, @@ -56,12 +46,8 @@ export const serviceList = { 'carbon': Carbon, 'dbots': DBots, 'dbots.co': DBots, - 'discordappsdev': DiscordAppsDev, - 'discordapps.dev': DiscordAppsDev, 'discordboats': DiscordBoats, 'discord.boats': DiscordBoats, - 'discordbotdirectory': DiscordBotDirectory, - 'discordbotdirectory.net': DiscordBotDirectory, 'discordbotlist': DiscordBotList, 'discordbotlist.com': DiscordBotList, 'discordbotsco': DiscordBotsCo, @@ -88,10 +74,6 @@ export const serviceList = { 'glennbotlist.xyz': GlennBotList, 'infinitybotlist': InfinityBotList, 'infinitybotlist.com': InfinityBotList, - 'listmybots': ListMyBots, - 'listmybots.com': ListMyBots, - 'paradisebots': ParadiseBots, - 'paradisebots.net': ParadiseBots, 'spacebotslist': SpaceBotsList, 'space-bot-list.xyz': SpaceBotsList, 'topcord': TopCord, diff --git a/src/Interface/Lists/Arcane.ts b/src/Interface/Lists/Arcane.ts deleted file mode 100644 index 5b2802bf..00000000 --- a/src/Interface/Lists/Arcane.ts +++ /dev/null @@ -1,56 +0,0 @@ -import { Service, ServicePostOptions } from '../Service' -import { Util } from '../../Utils/Util' - -/** - * Represents the Arcane Bot Center service. - * @see https://arcane-center.xyz/documentation - */ -export default class Arcane extends Service { - /** The values that can be used to select the service. */ - static get aliases() { - return ['arcane', 'arcane-center.xyz'] - } - - /** The logo URL. */ - static get logoURL() { - return 'https://arcane-center.xyz/src/images/favicons/favicon.png' - } - - /** Service's name. */ - static get serviceName() { - return 'Arcane Bot List' - } - - /** The website URL. */ - static get websiteURL() { - return 'https://arcane-center.xyz' - } - - /** The base URL of the service's API. */ - static get baseURL() { - return 'https://arcane-center.xyz/api' - } - - /** - * Posts statistics to this service. - * @param options The options of the request - */ - static post(options: ServicePostOptions) { - const { token, clientID, serverCount, userCount, shard } = options - return super._post({ - method: 'post', - url: `/${Util.resolveID(clientID)}/stats`, - headers: { Authorization: token }, - data: shard - ? { - server_count: Util.resolveCount(serverCount), - member_count: Util.resolveCount(userCount), - shard_count: shard.count - } - : { - server_count: Util.resolveCount(serverCount), - member_count: Util.resolveCount(userCount) - } - }) - } -} diff --git a/src/Interface/Lists/BotsDataBase.ts b/src/Interface/Lists/BotsDataBase.ts deleted file mode 100644 index 3db5470d..00000000 --- a/src/Interface/Lists/BotsDataBase.ts +++ /dev/null @@ -1,81 +0,0 @@ -import { Service, ServicePostOptions } from '../Service' -import { Util, IDResolvable } from '../../Utils/Util' - -/** - * Represents the BotsDataBase service. - * @see https://docs.botsdatabase.com/ - */ -export default class BotsDataBase extends Service { - /** The values that can be used to select the service. */ - static get aliases() { - return ['botsdatabase', 'botsdatabase.com'] - } - - /** The logo URL. */ - static get logoURL() { - return 'https://botsdatabase.com/images/icons/favicon-96x96.png' - } - - /** Service's name. */ - static get serviceName() { - return 'BotsDataBase' - } - - /** The website URL. */ - static get websiteURL() { - return 'https://botsdatabase.com' - } - - /** The base URL of the service's API. */ - static get baseURL() { - return 'https://api.botsdatabase.com/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)}`, - headers: { - Authorization: token, - 'Content-Type': 'application/json' - }, - data: { servers: Util.resolveCount(serverCount) } - }) - } - - /** - * Gets the user listed on this service. - * @param id The user's ID - */ - getUser(id: IDResolvable) { - return this._request({ url: `/users/${Util.resolveID(id)}` }) - } - - /** - * Gets the bot listed on this service. - * @param id The bot's ID - */ - getBot(id: IDResolvable) { - return this._request({ url: `/bots/${Util.resolveID(id)}` }) - } - - /** - * Gets the list of people who voted this bot on this service. - * @param id The bot's ID - */ - getBotVotes(id: IDResolvable) { - return this._request( - { - url: `/bots/${Util.resolveID(id)}/votes`, - headers: { Authorization: this.token } - }, - { requiresToken: true } - ) - } -} diff --git a/src/Interface/Lists/DiscordAppsDev.ts b/src/Interface/Lists/DiscordAppsDev.ts deleted file mode 100644 index cebc656c..00000000 --- a/src/Interface/Lists/DiscordAppsDev.ts +++ /dev/null @@ -1,90 +0,0 @@ -import { Service, ServicePostOptions } from '../Service' -import { Util, AnyObject, IDResolvable } from '../../Utils/Util' - -/** - * Represents the Discord Apps service. - * @see https://discordapps.dev/en-GB/posts/docs/api-v2/ - */ -export default class DiscordAppsDev extends Service { - /** The values that can be used to select the service. */ - static get aliases() { - return ['discordappsdev', 'discordapps.dev'] - } - - /** The logo URL. */ - static get logoURL() { - return 'https://api.discordapps.dev/img/logo/logo128.png' - } - - /** Service's name. */ - static get serviceName() { - return 'Discord Apps' - } - - /** The website URL. */ - static get websiteURL() { - return 'https://discordapps.dev' - } - - /** The base URL of the service's API. */ - static get baseURL() { - return 'https://api.discordapps.dev/api/v2' - } - - /** - * 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)}`, - headers: { Authorization: token }, - data: { bot: { count: Util.resolveCount(serverCount) } } - }) - } - - /** Gets a list of bots on this service. */ - getBots() { - return this._request({ url: '/bots' }) - } - - /** Gets a list of applications on this service. */ - getApps() { - return this._request({ url: '/apps' }) - } - - /** Gets a list of RPC applications on this service. */ - getRPCApps() { - return this._request({ url: '/rpc' }) - } - - /** - * Gets the bot listed on this service. - * @param id The bot's ID - */ - getBot(id: IDResolvable) { - return this._request({ url: `/bots/${Util.resolveID(id)}` }) - } - - /** - * Updates the bot with the data provided. - * @param id The bot's ID - * @param data The data being posted - */ - updateBot(id: IDResolvable, data: AnyObject) { - return this._request( - { - method: 'post', - url: `/bots/${Util.resolveID(id)}`, - headers: { Authorization: this.token }, - data - }, - { - requiresToken: true - } - ) - } -} diff --git a/src/Interface/Lists/DiscordBotDirectory.ts b/src/Interface/Lists/DiscordBotDirectory.ts deleted file mode 100644 index ccca7775..00000000 --- a/src/Interface/Lists/DiscordBotDirectory.ts +++ /dev/null @@ -1,57 +0,0 @@ -import { Service, ServicePostOptions } from '../Service' -import { Util, IDResolvable } from '../../Utils/Util' - -/** - * Represents the Discord Bot Directory service. - * @see https://botblock.org/lists/discordbotdirectory.net - */ -export default class DiscordBotDirectory extends Service { - /** The values that can be used to select the service. */ - static get aliases() { - return ['discordbotdirectory', 'discordbotdirectory.net'] - } - - /** The logo URL. */ - static get logoURL() { - return 'https://discordbotdirectory.net/assets/img/logo.png' - } - - /** Service's name. */ - static get serviceName() { - return 'Discord Bot Directory' - } - - /** The website URL. */ - static get websiteURL() { - return 'https://discordbotdirectory.net' - } - - /** The base URL of the service's API. */ - static get baseURL() { - return 'https://discordbotdirectory.net/api' - } - - /** - * Posts statistics to this service. - * The docs for this endopoint exist only in a Discord message. - * 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: `/auth/stats/${Util.resolveID(clientID)}`, - headers: { authorization: token, 'Content-Type': 'application/json' }, - data: { server_count: Util.resolveCount(serverCount) } - }) - } - - /** - * Gets the widget URL for this bot. - * @param id The bot's ID - */ - getWidgetURL(id: IDResolvable) { - return this._appendQuery(`/embed/${Util.resolveID(id)}`, {}) - } -} diff --git a/src/Interface/Lists/ListMyBots.ts b/src/Interface/Lists/ListMyBots.ts deleted file mode 100644 index 51eeeccc..00000000 --- a/src/Interface/Lists/ListMyBots.ts +++ /dev/null @@ -1,99 +0,0 @@ -import { Service, ServicePostOptions } from '../Service' -import { Util, IDResolvable } from '../../Utils/Util' -import { Query } from '../../Utils/Constants' - -/** - * Represents the List My Bots service. - * @see https://listmybots.com/docs/api - */ -export default class ListMyBots extends Service { - /** The values that can be used to select the service. */ - static get aliases() { - return ['listmybots', 'listmybots.com'] - } - - /** The logo URL. */ - static get logoURL() { - return 'https://get.snaz.in/5Vm5J7i.png' - } - - /** Service's name. */ - static get serviceName() { - return 'List My Bots' - } - - /** The website URL. */ - static get websiteURL() { - return 'https://listmybots.com/' - } - - /** The base URL of the service's API. */ - static get baseURL() { - return 'https://listmybots.com/api' - } - - /** - * 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: `/bot/${Util.resolveID(clientID)}`, - headers: { Authorization: token }, - data: { count: Util.resolveCount(serverCount) } - }) - } - - /** - * Gets the bot listed on this service. - * @param id The bot's ID - */ - getBot(id: IDResolvable) { - return this._request({ url: `/bot/${Util.resolveID(id)}` }) - } - - /** - * Gets the status widget URL for this bot. - * @param id The bot's ID - * @param query The query string that will be used in the request - */ - getStatusWidgetURL(id: IDResolvable, query?: Query) { - return this._appendQuery( - `https://listmybots.com/api/bot/${Util.resolveID(id)}/widget/status`, - query || {}, - false - ) - } - - /** - * Gets the user listed on this service. - * @param id The user's ID - */ - getUser(id: IDResolvable) { - return this._request({ url: `/user/${Util.resolveID(id)}` }) - } - - /** - * Gets the info about someone's bots. - * @param id The user's ID - */ - getUserBots(id: IDResolvable) { - return this._request({ url: `/bots/${Util.resolveID(id)}` }) - } - - /** - * Gets the widget URL for this bot. - * @param id The bot's ID - * @param query The query string that will be used in the request - */ - getWidgetURL(id: IDResolvable, query?: Query) { - return this._appendQuery( - `https://listmybots.com/api/bot/${Util.resolveID(id)}/widget`, - query || {}, - false - ) - } -} diff --git a/src/Interface/Lists/ParadiseBots.ts b/src/Interface/Lists/ParadiseBots.ts deleted file mode 100644 index de386ad0..00000000 --- a/src/Interface/Lists/ParadiseBots.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { Service, ServicePostOptions } from '../Service' -import { IDResolvable, Util } from '../../Utils/Util' - -/** - * Represents the Paradise Bots service. - * @see https://paradisebots.net/api/v1/docs - */ -export default class ParadiseBots extends Service { - /** The values that can be used to select the service. */ - static get aliases() { - return ['paradisebots', 'paradisebots.net'] - } - - /** The logo URL. */ - static get logoURL() { - return 'https://i.imgur.com/Df2seyl.png' - } - - /** Service's name. */ - static get serviceName() { - return 'Paradise Bots' - } - - /** The website URL. */ - static get websiteURL() { - return 'https://paradisebots.net/' - } - - /** The base URL of the service's API. */ - static get baseURL() { - return 'https://paradisebots.net/api/v1' - } - - /** - * Posts statistics to this service. - * @param options The options of the request - */ - static post(options: ServicePostOptions) { - const { token, clientID, serverCount, shard } = options - return super._post({ - method: 'post', - url: `/bot/${Util.resolveID(clientID)}`, - headers: { - Authorization: token - }, - data: { - server_count: Util.resolveCount(serverCount), - ...(shard?.count - ? { - shard_count: Util.resolveCount(shard.count) - } - : {}) - } - }) - } - - /** - * Gets the bot listed on this service. - * @param id The bot's ID - */ - getBot(id: IDResolvable) { - return this._request({ url: `/bots/${Util.resolveID(id)}` }) - } -}