Skip to content

Commit

Permalink
fix: update InfinityBotList (#144)
Browse files Browse the repository at this point in the history
* fix: update InfinityBotList

* [auto] docs: update docs
  • Loading branch information
EndBug authored Feb 20, 2021
1 parent 7deff13 commit 3d3ece9
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 62 deletions.
70 changes: 35 additions & 35 deletions docs/general/services.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<a href="https://arcane-center.xyz"><h1>Arcane Bot List</h1></a>

Keys: `arcane`, `arcane-center.xyz`
Class: [dbots.Arcane](/#/docs/main/master/class/Arcane)
Class: [dbots.Arcane](/#/docs/main/US-infinitybots/class/Arcane)
Website: https://arcane-center.xyz
</div>

Expand All @@ -22,7 +22,7 @@ Website: https://arcane-center.xyz
<a href="https://botlists.com"><h1>Astro Bot List</h1></a>

Keys: `astrobotlist`, `botlists.com`
Class: [dbots.AstroBotList](/#/docs/main/master/class/AstroBotList)
Class: [dbots.AstroBotList](/#/docs/main/US-infinitybots/class/AstroBotList)
Website: https://botlists.com
</div>

Expand All @@ -35,7 +35,7 @@ Website: https://botlists.com
<a href="https://bladebotlist.xyz"><h1>BladeBotList</h1></a>

Keys: `bladebotlist`, `bladebotlist.xyz`
Class: [dbots.BladeBotList](/#/docs/main/master/class/BladeBotList)
Class: [dbots.BladeBotList](/#/docs/main/US-infinitybots/class/BladeBotList)
Website: https://bladebotlist.xyz
</div>

Expand All @@ -48,7 +48,7 @@ Website: https://bladebotlist.xyz
<a href="https://blist.xyz"><h1>Blist</h1></a>

Keys: `blist`, `blist.xyz`
Class: [dbots.Blist](/#/docs/main/master/class/Blist)
Class: [dbots.Blist](/#/docs/main/US-infinitybots/class/Blist)
Website: https://blist.xyz
</div>

Expand All @@ -61,7 +61,7 @@ Website: https://blist.xyz
<a href="https://botlist.space"><h1>botlist.space</h1></a>

Keys: `botlistspace`, `botlist.space`
Class: [dbots.BotListSpace](/#/docs/main/master/class/BotListSpace)
Class: [dbots.BotListSpace](/#/docs/main/US-infinitybots/class/BotListSpace)
Website: https://botlist.space
</div>

Expand All @@ -74,7 +74,7 @@ Website: https://botlist.space
<a href="https://botsdatabase.com"><h1>BotsDataBase</h1></a>

Keys: `botsdatabase`, `botsdatabase.com`
Class: [dbots.BotsDataBase](/#/docs/main/master/class/BotsDataBase)
Class: [dbots.BotsDataBase](/#/docs/main/US-infinitybots/class/BotsDataBase)
Website: https://botsdatabase.com
</div>

Expand All @@ -87,7 +87,7 @@ Website: https://botsdatabase.com
<a href="https://botsfordiscord.com"><h1>Bots For Discord</h1></a>

Keys: `botsfordiscord`, `botsfordiscord.com`
Class: [dbots.BotsForDiscord](/#/docs/main/master/class/BotsForDiscord)
Class: [dbots.BotsForDiscord](/#/docs/main/US-infinitybots/class/BotsForDiscord)
Website: https://botsfordiscord.com
</div>

Expand All @@ -100,7 +100,7 @@ Website: https://botsfordiscord.com
<a href="https://bots.ondiscord.xyz"><h1>Bots On Discord</h1></a>

Keys: `botsondiscord`, `bots.ondiscord.xyz`
Class: [dbots.BotsOnDiscord](/#/docs/main/master/class/BotsOnDiscord)
Class: [dbots.BotsOnDiscord](/#/docs/main/US-infinitybots/class/BotsOnDiscord)
Website: https://bots.ondiscord.xyz
</div>

Expand All @@ -114,7 +114,7 @@ Website: https://bots.ondiscord.xyz
<a href="https://www.carbonitex.net/Discord/bots"><h1>Carbonitex</h1></a>

Keys: `carbonitex`, `carbonitex.net`, `carbon`
Class: [dbots.Carbon](/#/docs/main/master/class/Carbon)
Class: [dbots.Carbon](/#/docs/main/US-infinitybots/class/Carbon)
Website: https://www.carbonitex.net/Discord/bots
</div>

Expand All @@ -127,7 +127,7 @@ Website: https://www.carbonitex.net/Discord/bots
<a href="https://dblista.pl"><h1>DBLista</h1></a>

Keys: `dblista.pl`, `dblista`
Class: [dbots.DBLista](/#/docs/main/master/class/DBLista)
Class: [dbots.DBLista](/#/docs/main/US-infinitybots/class/DBLista)
Website: https://dblista.pl
</div>

Expand All @@ -140,7 +140,7 @@ Website: https://dblista.pl
<a href="https://dbots.co/"><h1>DBots.co</h1></a>

Keys: `dbots`, `dbots.co`
Class: [dbots.DBots](/#/docs/main/master/class/DBots)
Class: [dbots.DBots](/#/docs/main/US-infinitybots/class/DBots)
Website: https://dbots.co/
</div>

Expand All @@ -153,7 +153,7 @@ Website: https://dbots.co/
<a href="https://bots.distop.xyz/"><h1>DisTop</h1></a>

Keys: `distop`, `distop.xyz`
Class: [dbots.DisTop](/#/docs/main/master/class/DisTop)
Class: [dbots.DisTop](/#/docs/main/US-infinitybots/class/DisTop)
Website: https://bots.distop.xyz/
</div>

Expand All @@ -166,7 +166,7 @@ Website: https://bots.distop.xyz/
<a href="https://discordapps.dev"><h1>Discord Apps</h1></a>

Keys: `discordappsdev`, `discordapps.dev`
Class: [dbots.DiscordAppsDev](/#/docs/main/master/class/DiscordAppsDev)
Class: [dbots.DiscordAppsDev](/#/docs/main/US-infinitybots/class/DiscordAppsDev)
Website: https://discordapps.dev
</div>

Expand All @@ -179,7 +179,7 @@ Website: https://discordapps.dev
<a href="https://discord.boats"><h1>Discord Boats</h1></a>

Keys: `discordboats`, `discord.boats`
Class: [dbots.DiscordBoats](/#/docs/main/master/class/DiscordBoats)
Class: [dbots.DiscordBoats](/#/docs/main/US-infinitybots/class/DiscordBoats)
Website: https://discord.boats
</div>

Expand All @@ -192,7 +192,7 @@ Website: https://discord.boats
<a href="https://discordbotdirectory.net"><h1>Discord Bot Directory</h1></a>

Keys: `discordbotdirectory`, `discordbotdirectory.net`
Class: [dbots.DiscordBotDirectory](/#/docs/main/master/class/DiscordBotDirectory)
Class: [dbots.DiscordBotDirectory](/#/docs/main/US-infinitybots/class/DiscordBotDirectory)
Website: https://discordbotdirectory.net
</div>

Expand All @@ -205,7 +205,7 @@ Website: https://discordbotdirectory.net
<a href="https://discordbotlist.com"><h1>Discord Bot List</h1></a>

Keys: `discordbotlist`, `discordbotlist.com`
Class: [dbots.DiscordBotList](/#/docs/main/master/class/DiscordBotList)
Class: [dbots.DiscordBotList](/#/docs/main/US-infinitybots/class/DiscordBotList)
Website: https://discordbotlist.com
</div>

Expand All @@ -218,7 +218,7 @@ Website: https://discordbotlist.com
<a href="https://discordbot.world"><h1>Discord Bot World</h1></a>

Keys: `discordbotworld`, `discordbot.world`
Class: [dbots.DiscordBotWorld](/#/docs/main/master/class/DiscordBotWorld)
Class: [dbots.DiscordBotWorld](/#/docs/main/US-infinitybots/class/DiscordBotWorld)
Website: https://discordbot.world
</div>

Expand All @@ -231,7 +231,7 @@ Website: https://discordbot.world
<a href="https://discordbots.co"><h1>DiscordBots.co</h1></a>

Keys: `discordbotsco`, `discordbots.co`
Class: [dbots.DiscordBotsCo](/#/docs/main/master/class/DiscordBotsCo)
Class: [dbots.DiscordBotsCo](/#/docs/main/US-infinitybots/class/DiscordBotsCo)
Website: https://discordbots.co
</div>

Expand All @@ -244,7 +244,7 @@ Website: https://discordbots.co
<a href="https://discord.bots.gg"><h1>Discord Bots</h1></a>

Keys: `discordbotsgg`, `discord.bots.gg`
Class: [dbots.DiscordBotsGG](/#/docs/main/master/class/DiscordBotsGG)
Class: [dbots.DiscordBotsGG](/#/docs/main/US-infinitybots/class/DiscordBotsGG)
Website: https://discord.bots.gg
</div>

Expand All @@ -257,7 +257,7 @@ Website: https://discord.bots.gg
<a href="https://discordextremelist.xyz/"><h1>Discord Extreme List</h1></a>

Keys: `discordextremelist`, `discordextremelist.xyz`
Class: [dbots.DiscordExtremeList](/#/docs/main/master/class/DiscordExtremeList)
Class: [dbots.DiscordExtremeList](/#/docs/main/US-infinitybots/class/DiscordExtremeList)
Website: https://discordextremelist.xyz/
</div>

Expand All @@ -270,7 +270,7 @@ Website: https://discordextremelist.xyz/
<a href="https://bots.discordlabs.org/"><h1>Discord Labs</h1></a>

Keys: `discordlabs`, `discordlabs.org`
Class: [dbots.DiscordLabs](/#/docs/main/master/class/DiscordLabs)
Class: [dbots.DiscordLabs](/#/docs/main/US-infinitybots/class/DiscordLabs)
Website: https://bots.discordlabs.org/
</div>

Expand All @@ -283,7 +283,7 @@ Website: https://bots.discordlabs.org/
<a href="https://discordlistology.com/"><h1>DiscordListology</h1></a>

Keys: `discordlistology`, `discordlistology.com`
Class: [dbots.DiscordListology](/#/docs/main/master/class/DiscordListology)
Class: [dbots.DiscordListology](/#/docs/main/US-infinitybots/class/DiscordListology)
Website: https://discordlistology.com/
</div>

Expand All @@ -296,7 +296,7 @@ Website: https://discordlistology.com/
<a href="https://discordservices.net"><h1>Discord Services</h1></a>

Keys: `discordservices`, `discordservices.net`
Class: [dbots.DiscordServices](/#/docs/main/master/class/DiscordServices)
Class: [dbots.DiscordServices](/#/docs/main/US-infinitybots/class/DiscordServices)
Website: https://discordservices.net
</div>

Expand All @@ -309,7 +309,7 @@ Website: https://discordservices.net
<a href="https://disforge.com/bots"><h1>Disforge</h1></a>

Keys: `disforge`, `disforge.com`
Class: [dbots.Disforge](/#/docs/main/master/class/Disforge)
Class: [dbots.Disforge](/#/docs/main/US-infinitybots/class/Disforge)
Website: https://disforge.com/bots
</div>

Expand All @@ -322,7 +322,7 @@ Website: https://disforge.com/bots
<a href="https://glennbotlist.xyz"><h1>Glenn Bot List</h1></a>

Keys: `glennbotlist`, `glennbotlist.xyz`
Class: [dbots.GlennBotList](/#/docs/main/master/class/GlennBotList)
Class: [dbots.GlennBotList](/#/docs/main/US-infinitybots/class/GlennBotList)
Website: https://glennbotlist.xyz
</div>

Expand All @@ -335,7 +335,7 @@ Website: https://glennbotlist.xyz
<a href="https://infinitybotlist.com"><h1>Infinity Bot List</h1></a>

Keys: `infinitybotlist`, `infinitybotlist.com`
Class: [dbots.InfinityBotList](/#/docs/main/master/class/InfinityBotList)
Class: [dbots.InfinityBotList](/#/docs/main/US-infinitybots/class/InfinityBotList)
Website: https://infinitybotlist.com
</div>

Expand All @@ -348,7 +348,7 @@ Website: https://infinitybotlist.com
<a href="https://listmybots.com/"><h1>List My Bots</h1></a>

Keys: `listmybots`, `listmybots.com`
Class: [dbots.ListMyBots](/#/docs/main/master/class/ListMyBots)
Class: [dbots.ListMyBots](/#/docs/main/US-infinitybots/class/ListMyBots)
Website: https://listmybots.com/
</div>

Expand All @@ -361,7 +361,7 @@ Website: https://listmybots.com/
<a href="https://mythicalbots.xyz/"><h1>Mythical Bots</h1></a>

Keys: `mythicalbots`, `mythicalbots.xyz`
Class: [dbots.MythicalBots](/#/docs/main/master/class/MythicalBots)
Class: [dbots.MythicalBots](/#/docs/main/US-infinitybots/class/MythicalBots)
Website: https://mythicalbots.xyz/
</div>

Expand All @@ -374,7 +374,7 @@ Website: https://mythicalbots.xyz/
<a href="https://paradisebots.net/"><h1>Paradise Bots</h1></a>

Keys: `paradisebots`, `paradisebots.net`
Class: [dbots.ParadiseBots](/#/docs/main/master/class/ParadiseBots)
Class: [dbots.ParadiseBots](/#/docs/main/US-infinitybots/class/ParadiseBots)
Website: https://paradisebots.net/
</div>

Expand All @@ -387,7 +387,7 @@ Website: https://paradisebots.net/
<a href="https://space-bot-list.xyz/"><h1>Space Bots List</h1></a>

Keys: `spacebotslist`, `space-bot-list.xyz`
Class: [dbots.SpaceBotsList](/#/docs/main/master/class/SpaceBotsList)
Class: [dbots.SpaceBotsList](/#/docs/main/US-infinitybots/class/SpaceBotsList)
Website: https://space-bot-list.xyz/
</div>

Expand All @@ -400,7 +400,7 @@ Website: https://space-bot-list.xyz/
<a href="https://topcord.xyz/"><h1>TopCord</h1></a>

Keys: `topcord`, `topcord.xyz`
Class: [dbots.TopCord](/#/docs/main/master/class/TopCord)
Class: [dbots.TopCord](/#/docs/main/US-infinitybots/class/TopCord)
Website: https://topcord.xyz/
</div>

Expand All @@ -413,7 +413,7 @@ Website: https://topcord.xyz/
<a href="https://top.gg"><h1>Top.gg</h1></a>

Keys: `topgg`, `top.gg`
Class: [dbots.TopGG](/#/docs/main/master/class/TopGG)
Class: [dbots.TopGG](/#/docs/main/US-infinitybots/class/TopGG)
Website: https://top.gg
</div>

Expand All @@ -426,7 +426,7 @@ Website: https://top.gg
<a href="https://voidbots.net/"><h1>Void Bots</h1></a>

Keys: `voidbots`, `voidbots.net`
Class: [dbots.VoidBots](/#/docs/main/master/class/VoidBots)
Class: [dbots.VoidBots](/#/docs/main/US-infinitybots/class/VoidBots)
Website: https://voidbots.net/
</div>

Expand All @@ -439,7 +439,7 @@ Website: https://voidbots.net/
<a href="https://wonderbotlist.com/en"><h1>Wonder Bot List</h1></a>

Keys: `wonderbotlist`, `wonderbotlist.com`
Class: [dbots.WonderBotList](/#/docs/main/master/class/WonderBotList)
Class: [dbots.WonderBotList](/#/docs/main/US-infinitybots/class/WonderBotList)
Website: https://wonderbotlist.com/en
</div>

Expand All @@ -452,6 +452,6 @@ Website: https://wonderbotlist.com/en
<a href="https://yabl.xyz/"><h1>Yet Another Bot List</h1></a>

Keys: `yabl`, `yabl.xyz`
Class: [dbots.YABL](/#/docs/main/master/class/YABL)
Class: [dbots.YABL](/#/docs/main/US-infinitybots/class/YABL)
Website: https://yabl.xyz/
</div>
2 changes: 1 addition & 1 deletion lib/Interface/Lists/InfinityBotList.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Service, ServicePostOptions } from '../Service';
import { IDResolvable } from '../../Utils/Util';
/**
* Represents the Infinity Bot List service.
* @see https://infinitybotlist.com/docs
* @see https://docs.infinitybotlist.com
*/
export default class InfinityBotList extends Service {
/** The values that can be used to select the service. */
Expand Down
19 changes: 6 additions & 13 deletions lib/Interface/Lists/InfinityBotList.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var Service_1 = require("../Service");
var Util_1 = require("../../Utils/Util");
/**
* Represents the Infinity Bot List service.
* @see https://infinitybotlist.com/docs
* @see https://docs.infinitybotlist.com
*/
var InfinityBotList = /** @class */ (function (_super) {
__extends(InfinityBotList, _super);
Expand Down Expand Up @@ -70,7 +70,7 @@ var InfinityBotList = /** @class */ (function (_super) {
Object.defineProperty(InfinityBotList, "baseURL", {
/** The base URL of the service's API. */
get: function () {
return 'https://infinitybotlist.com/api';
return 'https://api.infinitybotlist.com';
},
enumerable: false,
configurable: true
Expand All @@ -83,10 +83,9 @@ var InfinityBotList = /** @class */ (function (_super) {
var clientID = options.clientID, token = options.token, serverCount = options.serverCount, shard = options.shard;
return _super._post.call(this, {
method: 'post',
url: "/bots/" + Util_1.Util.resolveID(clientID),
url: "/bot/" + Util_1.Util.resolveID(clientID),
headers: {
authorization: token,
'Content-Type': 'application/json'
authorization: token
},
data: __assign({ servers: Util_1.Util.resolveCount(serverCount) }, ((shard === null || shard === void 0 ? void 0 : shard.count) ? {
shards: Util_1.Util.resolveCount(shard.count)
Expand All @@ -100,10 +99,7 @@ var InfinityBotList = /** @class */ (function (_super) {
*/
InfinityBotList.prototype.getBot = function (id) {
return this._request({
url: "/bots/" + Util_1.Util.resolveID(id) + "/info",
headers: {
'Content-Type': 'application/json'
}
url: "/bot/" + Util_1.Util.resolveID(id) + "/info"
});
};
/**
Expand All @@ -112,10 +108,7 @@ var InfinityBotList = /** @class */ (function (_super) {
*/
InfinityBotList.prototype.getUser = function (id) {
return this._request({
url: "/users/" + Util_1.Util.resolveID(id),
headers: {
'Content-Type': 'application/json'
}
url: "/user/" + Util_1.Util.resolveID(id)
});
};
return InfinityBotList;
Expand Down
Loading

0 comments on commit 3d3ece9

Please sign in to comment.