Skip to content

Commit cd55f66

Browse files
committed
Remove closed lists
1 parent 929043e commit cd55f66

File tree

2 files changed

+2
-192
lines changed

2 files changed

+2
-192
lines changed

dbots/service.py

Lines changed: 2 additions & 183 deletions
Original file line numberDiff line numberDiff line change
@@ -532,115 +532,6 @@ def get_bots(self) -> HTTPResponse:
532532
path = '/api/listedbots'
533533
)
534534

535-
class CloudBotList(Service):
536-
"""
537-
Represents the Cloud Botlist service.
538-
539-
.. seealso::
540-
- `Cloud Botlist Website <https://cloud-botlist.xyz/>`_
541-
- `Cloud Botlist API Documentation <https://apollos.gitbook.io/cloud-botlist/>`_
542-
"""
543-
544-
BASE_URL = 'https://cloud-botlist.xyz/api'
545-
546-
@staticmethod
547-
def aliases() -> list:
548-
return ['cloudbotList', 'cloud-botlist.xyz', 'cloudbotList.xyz', 'cloudbl', 'cbl']
549-
550-
@staticmethod
551-
def _post(
552-
http_client: HTTPClient, bot_id: str, token: str,
553-
server_count = 0, user_count = 0,
554-
voice_connections = 0, shard_count: int = None,
555-
shard_id: int = None
556-
) -> HTTPResponse:
557-
return http_client.request(
558-
method = 'POST',
559-
path = f'{CloudBotList.BASE_URL}/bots/{bot_id}',
560-
headers = { 'Authorization': token },
561-
json = {
562-
'guilds': server_count,
563-
'users': user_count
564-
}
565-
)
566-
567-
def get_bot(self, bot_id: str) -> HTTPResponse:
568-
"""|httpres|\n
569-
Gets the bot's stats on this service.
570-
571-
Parameters
572-
-----------
573-
bot_id: :class:`str`
574-
The bot's ID.
575-
"""
576-
return self._request(
577-
method = 'GET',
578-
path = f'/bots/{bot_id}'
579-
)
580-
581-
class CloudList(Service):
582-
"""
583-
Represents the Cloud List service.
584-
585-
.. warning:: This service is deprecated and will be removed in the next major release.
586-
587-
.. seealso::
588-
- `Cloud List Website <https://www.cloudlist.xyz/>`_
589-
- `Cloud List API Documentation <https://www.cloudlist.xyz/apidocs/>`_
590-
"""
591-
592-
BASE_URL = 'https://www.cloudlist.xyz/api'
593-
594-
@staticmethod
595-
def aliases() -> list:
596-
return ['cloudlist', 'cloudlistxyz', 'cloudlist.xyz']
597-
598-
@staticmethod
599-
def _post(
600-
http_client: HTTPClient, bot_id: str, token: str,
601-
server_count = 0, user_count = 0,
602-
voice_connections = 0, shard_count: int = None,
603-
shard_id: int = None
604-
) -> HTTPResponse:
605-
return http_client.request(
606-
method = 'POST',
607-
path = f'{CloudList.BASE_URL}/stats/{bot_id}',
608-
headers = { 'Authorization': token },
609-
json = { 'count': server_count }
610-
)
611-
612-
def get_bot(self, bot_id: str) -> HTTPResponse:
613-
"""|httpres|\n
614-
Gets the bot's stats on this service.
615-
616-
Parameters
617-
-----------
618-
bot_id: :class:`str`
619-
The bot's ID.
620-
"""
621-
return self._request(
622-
method = 'GET',
623-
path = f'/bot/{bot_id}',
624-
headers = { 'Authorization': self.token },
625-
requires_token = True
626-
)
627-
628-
def get_bot_votes(self, bot_id: str) -> HTTPResponse:
629-
"""|httpres|\n
630-
Gets the list of people who voted this bot on this service.
631-
632-
Parameters
633-
-----------
634-
bot_id: :class:`str`
635-
The bot's ID.
636-
"""
637-
return self._request(
638-
method = 'GET',
639-
path = f'/bot/vote/{bot_id}',
640-
headers = { 'Authorization': self.token },
641-
requires_token = True
642-
)
643-
644535
class DBLista(Service):
645536
"""
646537
Represents the DBLista service.
@@ -1303,78 +1194,6 @@ def get_widget_url(self, bot_id: str, **query) -> str:
13031194
"""
13041195
return f'{DiscordExtremeList.BASE_URL}/bot/{bot_id}/widget?{_encode_query(query)}'
13051196

1306-
class DivineDiscordBots(Service):
1307-
"""
1308-
Represents the Divine Discord Bots service.
1309-
1310-
.. warning:: This service is deprecated and will be removed in the next major release.
1311-
1312-
.. seealso::
1313-
- `Divine Discord Bots Website <https://divinediscordbots.com/>`_
1314-
- `Divine Discord Bots API Documentation <https://divinediscordbots.com/api/>`_
1315-
"""
1316-
1317-
BASE_URL = 'https://divinediscordbots.com'
1318-
1319-
@staticmethod
1320-
def aliases() -> list:
1321-
return ['divinediscordbots', 'divinediscordbots.com', 'divinedbots', 'divine', 'ddb']
1322-
1323-
@staticmethod
1324-
def _post(
1325-
http_client: HTTPClient, bot_id: str, token: str,
1326-
server_count = 0, user_count = 0,
1327-
voice_connections = 0, shard_count: int = None,
1328-
shard_id: int = None
1329-
) -> HTTPResponse:
1330-
return http_client.request(
1331-
method = 'POST',
1332-
path = f'{DivineDiscordBots.BASE_URL}/bot/{bot_id}',
1333-
headers = { 'Authorization': token },
1334-
json = { 'server_count': server_count }
1335-
)
1336-
1337-
def get_bot_stats(self, bot_id: str) -> HTTPResponse:
1338-
"""|httpres|\n
1339-
Gets the statistics of your bot on this service.
1340-
1341-
Parameters
1342-
-----------
1343-
bot_id: :class:`str`
1344-
The bot's ID.
1345-
"""
1346-
return self._request(
1347-
method = 'GET',
1348-
path = f'/bot/{bot_id}/stats'
1349-
)
1350-
1351-
def get_bot_votes(self, bot_id: str) -> HTTPResponse:
1352-
"""|httpres|\n
1353-
Gets the list of people who voted this bot on this service.
1354-
1355-
Parameters
1356-
-----------
1357-
bot_id: :class:`str`
1358-
The bot's ID.
1359-
"""
1360-
return self._request(
1361-
method = 'GET',
1362-
path = f'/bots/{bot_id}/votes'
1363-
)
1364-
1365-
def get_widget_url(self, bot_id: str, **query) -> str:
1366-
"""
1367-
Gets the widget URL for this bot.
1368-
1369-
Parameters
1370-
-----------
1371-
bot_id: :class:`str`
1372-
The bot's ID.
1373-
**query
1374-
The query string to append to the URL.
1375-
"""
1376-
return f'{DivineDiscordBots.BASE_URL}/api/widget/{bot_id}.svg?{_encode_query(query)}'
1377-
13781197
class GlennBotList(Service):
13791198
"""
13801199
Represents the Glenn Bot List service.
@@ -2130,7 +1949,7 @@ def get_unverified_bots(self) -> HTTPResponse:
21301949

21311950
Service.SERVICES = [
21321951
Arcane, BotListSpace, BotsForDiscord, BotsOfDiscord, BotsOnDiscord, Carbon,
2133-
CloudBotList, CloudList, DBLista, DiscordBotsGG, DiscordAppsDev, DiscordBoats,
2134-
DiscordBotList, DiscordBotWorld, DiscordExtremeList, DivineDiscordBots, GlennBotList,
1952+
DBLista, DiscordBotsGG, DiscordAppsDev, DiscordBoats,
1953+
DiscordBotList, DiscordBotWorld, DiscordExtremeList, GlennBotList,
21351954
LBots, ListMyBots, MythicalBots, SpaceBotsList, TopGG, WonderBotList, YABL
21361955
]

docs/api.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,6 @@ Services
6464
.. autoclass:: Carbon
6565
:members:
6666

67-
.. autoclass:: CloudBotList
68-
:members:
69-
70-
.. autoclass:: CloudList
71-
:members:
72-
7367
.. autoclass:: DBLista
7468
:members:
7569

@@ -91,9 +85,6 @@ Services
9185
.. autoclass:: DiscordExtremeList
9286
:members:
9387

94-
.. autoclass:: DivineDiscordBots
95-
:members:
96-
9788
.. autoclass:: GlennBotList
9889
:members:
9990

0 commit comments

Comments
 (0)