From 743c20ba28c0925afc39495061b7e8a2fb81afb3 Mon Sep 17 00:00:00 2001 From: SrIzan10 <66965250+SrIzan10@users.noreply.github.com> Date: Sat, 14 Jan 2023 14:12:23 +0100 Subject: [PATCH] feat: plot problem tag --- index.ts | 14 ++++++++------ util/minecraftstatus.ts | 5 +++++ util/tags/minecraft.json | 5 +++++ 3 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 util/minecraftstatus.ts diff --git a/index.ts b/index.ts index 61a6e24..209ee37 100644 --- a/index.ts +++ b/index.ts @@ -1,4 +1,4 @@ -import { DefaultLogging, Dependencies, ModuleManager, single, Singleton } from '@sern/handler'; +import { DefaultLogging, Dependencies, single, Singleton } from '@sern/handler'; import { ActivityType } from 'discord.js'; import { Client, GatewayIntentBits } from 'discord.js'; import { Sern } from '@sern/handler'; @@ -9,9 +9,10 @@ import { setIntervalAsync } from 'set-interval-async'; import birthdays from './util/birthdays.js'; import twitternotifications from './util/twitternotifications.js'; import webserver from './util/web/webserver.js' +import minecraftstatus from './util/minecraftstatus.js'; // import giveawaychecker from './util/giveawaychecker.js'; -let devMode +let devMode: boolean if (process.argv[2] === '--dev') { devMode = true dotenv({path: '.env.dev'}) @@ -83,6 +84,11 @@ client.on('ready', async () => { setIntervalAsync(async () => { await birthdays(client); }, 3_600_000); + + setIntervalAsync(async () => { + await minecraftstatus(client); + }, 30_000); + webserver() } else { console.log('DevMode got activated, there are no checkers or webserver in this version.') @@ -92,8 +98,4 @@ client.on('ready', async () => { } }); -client.on('rateLimit', async () => { - console.log(`I just got ratelimited!`); -}); - client.login(process.env.TOKEN); diff --git a/util/minecraftstatus.ts b/util/minecraftstatus.ts new file mode 100644 index 0000000..ff4beef --- /dev/null +++ b/util/minecraftstatus.ts @@ -0,0 +1,5 @@ +import { Client } from "discord.js"; + +export default async function minecraftstatus(client: Client) { + +} \ No newline at end of file diff --git a/util/tags/minecraft.json b/util/tags/minecraft.json index af93e72..3dfad4a 100644 --- a/util/tags/minecraft.json +++ b/util/tags/minecraft.json @@ -18,5 +18,10 @@ "title": "No puedo entrar a nada en el garaje!", "text": "<@375984365181599744> te tiene que dar el rol.\nMenciónale cuando esté conectado diciendo que te de el rol. Después espera un tiempo hasta que te lo de y listo.", "color": "#8B0000" + }, + { + "title": "No puedo hacer nada en mi plot! <:PANIK:1063806522993418300>", + "text": "Ha habido un problemilla en el sistema de plots, y eso ha hecho que se rompan todos los IDs de todos los plots.\nEsto significa que el plot no es tuyo.\nPuedes mencionar a <@375984365181599744> para que te configure de nuevo el plot.", + "color": "#8B0000" } ] \ No newline at end of file