various changes to bot
This commit is contained in:
parent
a55623fa68
commit
622cbab216
5 changed files with 8 additions and 13 deletions
|
@ -12,6 +12,7 @@ interface SimplifiedGHReleases {
|
|||
// TODO: caching
|
||||
export async function getLatestMinecraftVersion(): Promise<string> {
|
||||
const f = await fetch(
|
||||
/* CHANGEME */
|
||||
'https://meta.polymc.org/v1/net.minecraft/package.json'
|
||||
);
|
||||
|
||||
|
@ -21,6 +22,7 @@ export async function getLatestMinecraftVersion(): Promise<string> {
|
|||
|
||||
// TODO: caching
|
||||
export async function getLatestPolyMCVersion(): Promise<string> {
|
||||
/* CHANGEME */
|
||||
const f = await fetch('https://api.github.com/repos/PolyMC/PolyMC/releases');
|
||||
const versions = (await f.json()) as SimplifiedGHReleases[];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue