Skip to content

Commit ef3c4a5

Browse files
committed
Remove closed service: GlennBotList
1 parent aadb4c6 commit ef3c4a5

File tree

3 files changed

+1
-94
lines changed

3 files changed

+1
-94
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ See more examples [here](/examples).
123123
- [discordextremelist.xyz](https://discordextremelist.xyz) ([docs](https://dbots.readthedocs.io/en/latest/api.html#dbots.DiscordExtremeList))
124124
- [bots.discordlabs.org](https://bots.discordlabs.org) ([docs](https://dbots.readthedocs.io/en/latest/api.html#dbots.DiscordLabs))
125125
- [discordlistology.com](https://discordlistology.com) ([docs](https://dbots.readthedocs.io/en/latest/api.html#dbots.DiscordListology))
126-
- [glennbotlist.xyz](https://glennbotlist.xyz) ([docs](https://dbots.readthedocs.io/en/latest/api.html#dbots.GlennBotList))
127126
- [lbots.org](https://lbots.org) ([docs](https://dbots.readthedocs.io/en/latest/api.html#dbots.LBots))
128127
- [listmybots.com](https://listmybots.com) ([docs](https://dbots.readthedocs.io/en/latest/api.html#dbots.ListMyBots))
129128
- [mythicalbots.xyz](https://mythicalbots.xyz) ([docs](https://dbots.readthedocs.io/en/latest/api.html#dbots.MythicalBots))

dbots/service.py

Lines changed: 1 addition & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1464,95 +1464,6 @@ def user_voted_guild(self, guild_id: str, user_id: str) -> HTTPResponse:
14641464
path = f'/guilds/{bot_id}/hasvoted/{user_id}'
14651465
)
14661466

1467-
class GlennBotList(Service):
1468-
"""
1469-
Represents the Glenn Bot List service.
1470-
1471-
.. seealso::
1472-
- `Glenn Bot List Website <https://glennbotlist.xyz/>`_
1473-
- `Glenn Bot List API Documentation <https://docs.glennbotlist.xyz/>`_
1474-
"""
1475-
1476-
BASE_URL = 'https://glennbotlist.xyz/api'
1477-
1478-
@staticmethod
1479-
def aliases() -> list:
1480-
return ['glennbotlist', 'glennbotlist.xyz', 'glennbotlist.gg', 'glenn']
1481-
1482-
@staticmethod
1483-
def _post(
1484-
http_client: HTTPClient, bot_id: str, token: str,
1485-
server_count = 0, user_count = 0,
1486-
voice_connections = 0, shard_count: int = None,
1487-
shard_id: int = None
1488-
) -> HTTPResponse:
1489-
payload = { 'serverCount': server_count }
1490-
if shard_id and shard_count:
1491-
payload['shardCount'] = shard_count
1492-
return http_client.request(
1493-
method = 'POST',
1494-
path = f'{GlennBotList.BASE_URL}/bot/{bot_id}/stats',
1495-
headers = { 'Authorization': token },
1496-
json = payload
1497-
)
1498-
1499-
def get_bot(self, bot_id: str) -> HTTPResponse:
1500-
"""|httpres|\n
1501-
Gets the bot listed on this service.
1502-
1503-
Parameters
1504-
-----------
1505-
bot_id: :class:`str`
1506-
The bot's ID.
1507-
"""
1508-
return self._request(
1509-
method = 'GET',
1510-
path = f'/bot/{bot_id}'
1511-
)
1512-
1513-
def get_bot_votes(self, bot_id: str) -> HTTPResponse:
1514-
"""|httpres|\n
1515-
Gets the list of people who voted this bot on this service.
1516-
1517-
Parameters
1518-
-----------
1519-
bot_id: :class:`str`
1520-
The bot's ID.
1521-
"""
1522-
return self._request(
1523-
method = 'GET',
1524-
path = f'/bots/{bot_id}/votes',
1525-
headers = { 'Authorization': self.token },
1526-
requires_token = True
1527-
)
1528-
1529-
def get_user(self, user_id: str) -> HTTPResponse:
1530-
"""|httpres|\n
1531-
Get a user listed on this service.
1532-
1533-
Parameters
1534-
-----------
1535-
user_id: :class:`str`
1536-
The user's ID.
1537-
"""
1538-
return self._request(
1539-
method = 'GET',
1540-
path = f'/user/{user_id}'
1541-
)
1542-
1543-
def get_widget_url(self, bot_id: str, **query) -> str:
1544-
"""
1545-
Gets the widget URL for this bot.
1546-
1547-
Parameters
1548-
-----------
1549-
bot_id: :class:`str`
1550-
The bot's ID.
1551-
**query
1552-
The query string to append to the URL.
1553-
"""
1554-
return f'https://glennbotlist.xyz/bot/{bot_id}/widget?{_encode_query(query)}'
1555-
15561467
class LBots(Service):
15571468
"""
15581469
Represents the LBots service.
@@ -2267,5 +2178,5 @@ def get_unverified_bots(self) -> HTTPResponse:
22672178
Arcane, Blist, BotListSpace, BotsDataBase, BotsForDiscord, BotsOnDiscord, Carbon,
22682179
DBLista, DiscordBotsCo, DiscordBotsGG, DiscordAppsDev, DiscordBoats,
22692180
DiscordBotList, DiscordBotWorld, DiscordExtremeList, DiscordLabs, DiscordListology,
2270-
GlennBotList, LBots, ListMyBots, MythicalBots, SpaceBotsList, TopCord, TopGG, WonderBotList, YABL
2181+
LBots, ListMyBots, MythicalBots, SpaceBotsList, TopCord, TopGG, WonderBotList, YABL
22712182
]

docs/api.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,6 @@ Services
9797
.. autoclass:: DiscordListology
9898
:members:
9999

100-
.. autoclass:: GlennBotList
101-
:members:
102-
103100
.. autoclass:: LBots
104101
:members:
105102

0 commit comments

Comments
 (0)