Skip to content

Commit 62a427f

Browse files
BradGamezEndBug
andauthored
Update and rename RadarBotList.ts to Radarcord.ts (#741)
* Update and rename RadarBotList.ts to Radarcord.ts Updated in accordance with https://docs.radarcord.net/ * Update ListIndex.ts * Run linter --------- Co-authored-by: Federico Grandi <[email protected]>
1 parent 8aa979a commit 62a427f

File tree

2 files changed

+29
-13
lines changed

2 files changed

+29
-13
lines changed

src/Interface/ListIndex.ts

+6-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import FatesList from './Lists/FatesList'
2424
import InfinityBotList from './Lists/InfinityBotList'
2525
import Listcord from './Lists/Listcord'
2626
import MotionBotList from './Lists/MotionBotList'
27-
import RadarBotList from './Lists/RadarBotList'
27+
import Radarcord from './Lists/Radarcord'
2828
import SpaceBotsList from './Lists/SpaceBotsList'
2929
import TopCord from './Lists/TopCord'
3030
import TopGG from './Lists/TopGG'
@@ -89,9 +89,11 @@ export const serviceList = {
8989
'motiondevelopment': MotionBotList,
9090
'motionbotlist': MotionBotList,
9191
'motiondevelopment.top': MotionBotList,
92-
'radar': RadarBotList,
93-
'radarbots': RadarBotList,
94-
'radarbotdirectory.xyz': RadarBotList,
92+
'radar': Radarcord,
93+
'radarbots': Radarcord,
94+
'radarbotdirectory.xyz': Radarcord,
95+
'radarcord': Radarcord,
96+
'radarcord.net': Radarcord,
9597
'spacebotslist': SpaceBotsList,
9698
'space-bot-list.xyz': SpaceBotsList,
9799
'topcord': TopCord,

src/Interface/Lists/RadarBotList.ts src/Interface/Lists/Radarcord.ts

+23-9
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,39 @@ import { Service, ServicePostOptions } from '../Service'
22
import { Util, IDResolvable } from '../../Utils/Util'
33

44
/**
5-
* Represents the Radar Bot Directory service.
6-
* @see https://docs.radarbotdirectory.xyz/
5+
* Represents the Radarcord service (formerly Radar Bot Directory).
6+
* @see https://docs.radarcord.net/
77
*/
8-
export default class RadarBotDirectory extends Service {
8+
export default class Radarcord extends Service {
99
/** The values that can be used to select the service. */
1010
static get aliases() {
11-
return ['radar', 'radarbots', 'radarbotdirectory.xyz']
11+
return [
12+
'radar',
13+
'radarbots',
14+
'radarbotdirectory.xyz',
15+
'radarcord',
16+
'radarcord.net'
17+
]
1218
}
1319

1420
/** The logo URL. */
1521
static get logoURL() {
16-
return 'https://theoverlook.xyz/Images/RBD/botlistlogo.png'
22+
return 'https://radarcord.net/static/logo.png'
1723
}
1824

1925
/** Service's name. */
2026
static get serviceName() {
21-
return 'Radar Bot Directory'
27+
return 'Radarcord'
2228
}
2329

2430
/** The website URL. */
2531
static get websiteURL() {
26-
return 'https://radarbotdirectory.xyz'
32+
return 'https://radarcord.net/'
2733
}
2834

2935
/** The base URL of the service's API. */
3036
static get baseURL() {
31-
return 'https://radarbotdirectory.xyz/api'
37+
return 'https://api.radarcord.net'
3238
}
3339

3440
/**
@@ -38,7 +44,7 @@ export default class RadarBotDirectory extends Service {
3844
static post(options: ServicePostOptions) {
3945
const { token, clientID, serverCount, shard } = options
4046
return super._post({
41-
method: 'patch',
47+
method: 'post',
4248
url: `/bot/${Util.resolveID(clientID)}/stats/`,
4349
headers: { Authorization: token },
4450
data: shard
@@ -74,4 +80,12 @@ export default class RadarBotDirectory extends Service {
7480
}
7581
)
7682
}
83+
84+
/**
85+
* Gets the bot's reviews on this service.
86+
* @param id The bot's ID
87+
*/
88+
getBotReviews(id: IDResolvable) {
89+
return this._request({ url: `/bot/${Util.resolveID(id)}/reviews` })
90+
}
7791
}

0 commit comments

Comments
 (0)