@@ -1464,95 +1464,6 @@ def user_voted_guild(self, guild_id: str, user_id: str) -> HTTPResponse:
1464
1464
path = f'/guilds/{ bot_id } /hasvoted/{ user_id } '
1465
1465
)
1466
1466
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
-
1556
1467
class LBots (Service ):
1557
1468
"""
1558
1469
Represents the LBots service.
@@ -2267,5 +2178,5 @@ def get_unverified_bots(self) -> HTTPResponse:
2267
2178
Arcane , Blist , BotListSpace , BotsDataBase , BotsForDiscord , BotsOnDiscord , Carbon ,
2268
2179
DBLista , DiscordBotsCo , DiscordBotsGG , DiscordAppsDev , DiscordBoats ,
2269
2180
DiscordBotList , DiscordBotWorld , DiscordExtremeList , DiscordLabs , DiscordListology ,
2270
- GlennBotList , LBots , ListMyBots , MythicalBots , SpaceBotsList , TopCord , TopGG , WonderBotList , YABL
2181
+ LBots , ListMyBots , MythicalBots , SpaceBotsList , TopCord , TopGG , WonderBotList , YABL
2271
2182
]
0 commit comments