mirror of
https://github.com/SrIzan10/vinci.git
synced 2026-06-06 01:07:00 +00:00
feat: plot problem tag
This commit is contained in:
14
index.ts
14
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);
|
||||
|
||||
5
util/minecraftstatus.ts
Normal file
5
util/minecraftstatus.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Client } from "discord.js";
|
||||
|
||||
export default async function minecraftstatus(client: Client) {
|
||||
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user