Fixes 2.0 (#8)
This commit is contained in:
parent
13effc58fe
commit
a88ccd92ff
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",
|
"version": "1.0.0",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -6,7 +6,6 @@ export const starsCommand = async (
|
||||||
) => {
|
) => {
|
||||||
await i.deferReply();
|
await i.deferReply();
|
||||||
|
|
||||||
/* CHANGEME */
|
|
||||||
const count = await fetch(
|
const count = await fetch(
|
||||||
'https://api.github.com/repos/PrismLauncher/PrismLauncher'
|
'https://api.github.com/repos/PrismLauncher/PrismLauncher'
|
||||||
)
|
)
|
||||||
|
|
|
@ -82,8 +82,7 @@ client.once('ready', async () => {
|
||||||
|
|
||||||
if (e.cleanContent.match(BuildConfig.ETA_REGEX)) {
|
if (e.cleanContent.match(BuildConfig.ETA_REGEX)) {
|
||||||
await e.reply(
|
await e.reply(
|
||||||
/* CHANGEME */
|
`${random(BuildConfig.ETA_MESSAGES)} <:pofat:1031701005559144458>`
|
||||||
`${random(BuildConfig.ETA_MESSAGES)} <:pofat:964546613194420294>`
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,6 @@ interface SimplifiedGHReleases {
|
||||||
// TODO: caching
|
// TODO: caching
|
||||||
export async function getLatestMinecraftVersion(): Promise<string> {
|
export async function getLatestMinecraftVersion(): Promise<string> {
|
||||||
const f = await fetch(
|
const f = await fetch(
|
||||||
/* CHANGEME */
|
|
||||||
'https://meta.prismlauncher.org/v1/net.minecraft/package.json'
|
'https://meta.prismlauncher.org/v1/net.minecraft/package.json'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -22,7 +21,6 @@ export async function getLatestMinecraftVersion(): Promise<string> {
|
||||||
|
|
||||||
// TODO: caching
|
// TODO: caching
|
||||||
export async function getLatestPrismLauncherVersion(): Promise<string> {
|
export async function getLatestPrismLauncherVersion(): Promise<string> {
|
||||||
/* CHANGEME */
|
|
||||||
const f = await fetch(
|
const f = await fetch(
|
||||||
'https://api.github.com/repos/PrismLauncher/PrismLauncher/releases'
|
'https://api.github.com/repos/PrismLauncher/PrismLauncher/releases'
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue