Skip to content

Commit cf67bcc

Browse files
committed
Remvoe closed list: BotsOfDiscord
1 parent a51b8f5 commit cf67bcc

File tree

3 files changed

+1
-74
lines changed

3 files changed

+1
-74
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ See more examples [here](/examples).
109109
- [arcane-center.xyz](https://arcane-center.xyz) ([docs](https://dbots.readthedocs.io/en/latest/api.html#dbots.Arcane))
110110
- [botlist.space](https://botlist.space) ([docs](https://dbots.readthedocs.io/en/latest/api.html#dbots.BotListSpace))
111111
- [botsfordiscord.com](https://botsfordiscord.com) ([docs](https://dbots.readthedocs.io/en/latest/api.html#dbots.BotsForDiscord))
112-
- [b-o-d.cf](https://b-o-d.cf) ([docs](https://dbots.readthedocs.io/en/latest/api.html#dbots.BotsOfDiscord))
113112
- [bots.ondiscord.xyz](https://bots.ondiscord.xyz) ([docs](https://dbots.readthedocs.io/en/latest/api.html#dbots.BotsOnDiscord))
114113
- [carbonitex.net](https://www.carbonitex.net/Discord/bots) ([docs](https://dbots.readthedocs.io/en/latest/api.html#dbots.Carbon))
115114
- [dblista.pl](https://dblista.pl) ([docs](https://dbots.readthedocs.io/en/latest/api.html#dbots.DBLista))

dbots/service.py

Lines changed: 1 addition & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -363,75 +363,6 @@ def get_widget_url(self, bot_id: str, **query) -> str:
363363
"""
364364
return f'{BotsForDiscord.BASE_URL}/bot/{bot_id}/widget?{_encode_query(query)}'
365365

366-
class BotsOfDiscord(Service):
367-
"""
368-
Represents the Bots Of Discord service.
369-
370-
.. seealso::
371-
- `Bots Of Discord Website <https://b-o-d.cf/>`_
372-
"""
373-
374-
BASE_URL = 'https://www.b-o-d.cf/api'
375-
376-
@staticmethod
377-
def aliases() -> list:
378-
return ['botsofdiscord', 'b-o-d', 'b-o-d.cf']
379-
380-
@staticmethod
381-
def _post(
382-
http_client: HTTPClient, bot_id: str, token: str,
383-
server_count = 0, user_count = 0,
384-
voice_connections = 0, shard_count: int = None,
385-
shard_id: int = None
386-
) -> HTTPResponse:
387-
payload = { 'server_count': server_count }
388-
if shard_id and shard_count:
389-
payload['shard_count'] = shard_count
390-
return http_client.request(
391-
method = 'POST',
392-
path = f'{BotsOfDiscord.BASE_URL}/bots/stats',
393-
headers = { 'Authorization': token },
394-
json = payload
395-
)
396-
397-
def get_bot_stats(self, bot_id: str) -> HTTPResponse:
398-
"""|httpres|\n
399-
Gets the bot's stats on this service.
400-
401-
Parameters
402-
-----------
403-
bot_id: :class:`str`
404-
The bot's ID.
405-
"""
406-
return self._request(
407-
method = 'GET',
408-
path = f'/bot/{bot_id}/stats'
409-
)
410-
411-
def get_bot_votes(self) -> HTTPResponse:
412-
"""|httpres|\n
413-
Gets the list of people who voted this bot on this service.
414-
"""
415-
return self._request(
416-
method = 'GET',
417-
path = f'/bot/votes',
418-
requires_token = True
419-
)
420-
421-
def get_user(self, user_id: str) -> HTTPResponse:
422-
"""|httpres|\n
423-
Gets the user listed on this service.
424-
425-
Parameters
426-
-----------
427-
user_id: :class:`str`
428-
The user's ID.
429-
"""
430-
return self._request(
431-
method = 'GET',
432-
path = f'/users/{user_id}'
433-
)
434-
435366
class BotsOnDiscord(Service):
436367
"""
437368
Represents the Bots On Discord service.
@@ -1948,7 +1879,7 @@ def get_unverified_bots(self) -> HTTPResponse:
19481879
)
19491880

19501881
Service.SERVICES = [
1951-
Arcane, BotListSpace, BotsForDiscord, BotsOfDiscord, BotsOnDiscord, Carbon,
1882+
Arcane, BotListSpace, BotsForDiscord, BotsOnDiscord, Carbon,
19521883
DBLista, DiscordBotsGG, DiscordAppsDev, DiscordBoats,
19531884
DiscordBotList, DiscordBotWorld, DiscordExtremeList, GlennBotList,
19541885
LBots, ListMyBots, MythicalBots, SpaceBotsList, TopGG, WonderBotList, YABL

docs/api.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ Services
5555
.. autoclass:: BotsForDiscord
5656
:members:
5757

58-
.. autoclass:: BotsOfDiscord
59-
:members:
60-
6158
.. autoclass:: BotsOnDiscord
6259
:members:
6360

0 commit comments

Comments
 (0)