Slight Fixes

Signed-off-by: IThundxr <contact@ithundxr.dev>
This commit is contained in:
IThundxr 2022-10-21 20:23:20 -04:00
parent 6bcbbe9db8
commit a2299bf4b7
5 changed files with 4 additions and 8 deletions

View file

@ -1,3 +1,3 @@
# PrismLauncher bot
# Refraction bot
PrismLauncher Bot for [Discord](https://discord.gg/prismlauncher).
Refraction Bot for [Discord](https://discord.gg/prismlauncher).

View file

@ -1,5 +1,5 @@
{
"name": "roly-poly",
"name": "refraction",
"version": "1.0.0",
"license": "GPL-3.0",
"scripts": {

View file

@ -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);

View file

@ -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>`
);
}

View file

@ -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[];