Slight Fixes
Signed-off-by: IThundxr <contact@ithundxr.dev>
This commit is contained in:
parent
6bcbbe9db8
commit
9401a4cd74
5 changed files with 4 additions and 8 deletions
|
@ -1,3 +1,3 @@
|
|||
# PrismLauncher bot
|
||||
# Refraction bot
|
||||
|
||||
PrismLauncher Bot for [Discord](https://discord.gg/prismlauncher).
|
||||
Refraction Bot for [Discord](https://discord.gg/prismlauncher).
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "roly-poly",
|
||||
"name": "refraction",
|
||||
"version": "1.0.0",
|
||||
"license": "GPL-3.0",
|
||||
"scripts": {
|
||||
|
|
|
@ -6,7 +6,6 @@ export const starsCommand = async (
|
|||
) => {
|
||||
await i.deferReply();
|
||||
|
||||
/* CHANGEME */
|
||||
const count = await fetch('https://api.github.com/repos/PrismLauncher/PrismLauncher')
|
||||
.then((r) => r.json() as Promise<{ stargazers_count: number }>)
|
||||
.then((j) => j.stargazers_count);
|
||||
|
|
|
@ -82,8 +82,7 @@ client.once('ready', async () => {
|
|||
|
||||
if (e.cleanContent.match(BuildConfig.ETA_REGEX)) {
|
||||
await e.reply(
|
||||
/* CHANGEME */
|
||||
`${random(BuildConfig.ETA_MESSAGES)} <:pofat:964546613194420294>`
|
||||
`${random(BuildConfig.ETA_MESSAGES)} <:pofat:1031701005559144458>`
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@ interface SimplifiedGHReleases {
|
|||
// TODO: caching
|
||||
export async function getLatestMinecraftVersion(): Promise<string> {
|
||||
const f = await fetch(
|
||||
/* CHANGEME */
|
||||
'https://meta.prismlauncher.org/v1/net.minecraft/package.json'
|
||||
);
|
||||
|
||||
|
@ -22,7 +21,6 @@ export async function getLatestMinecraftVersion(): Promise<string> {
|
|||
|
||||
// TODO: caching
|
||||
export async function getLatestPrismLauncherVersion(): Promise<string> {
|
||||
/* CHANGEME */
|
||||
const f = await fetch('https://api.github.com/repos/PrismLauncher/PrismLauncher/releases');
|
||||
const versions = (await f.json()) as SimplifiedGHReleases[];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue