This started happening this morning, tried to refresh the project multiple times but it just won’t work.
Project name: moonlightbot-premium
Error: https://media.discordapp.net/attachments/693323527990018090/726385865399730176/unknown.png
This started happening this morning, tried to refresh the project multiple times but it just won’t work.
Project name: moonlightbot-premium
Error: https://media.discordapp.net/attachments/693323527990018090/726385865399730176/unknown.png
Can you share the top of your file (all the dependencies and such)?
require(‘dotenv’).config()
require(‘module-alias/register’)
const MoonlightClient = require(’./classes/MoonlightClient’)
const fileloader = require(’@includes/fileloader’);
(async function() {
const structures = fileloader(’./classes/structures’)
for await (const file of structures) {
if(!file.endsWith('.js')) continue
require(file)
}
const intents = ['GUILDS', 'GUILD_MEMBERS', 'GUILD_BANS', 'GUILD_MESSAGES', 'DIRECT_MESSAGES', 'DIRECT_MESSAGE_REACTIONS']
if(process.env.BRANCH !== 'stable') intents.push('GUILD_PRESENCES')
const client = new MoonlightClient({
disableMentions: 'everyone',
disabledEvents: ['TYPING_START'],
ws: {
intents: intents
}
})
client.utils = require('@includes/utilities')
client.db = require('./includes/database')
client.glog = require('./includes/glog')
require('./includes/infractions')(client)
global.checks = require('./includes/checks')
if(process.env.NODE_ENV === 'production' && process.env.PROJECT_DOMAIN) {
const express = require('express')
const http = require('http')
const app = express()
app.get('/', (request, response) => {
response.sendStatus(200)
})
app.listen(process.env.PORT || 3000)
setInterval(() => {
http.get(`http://${process.env.PROJECT_DOMAIN}.glitch.me/`)
}, 280000)
}
client.loadEvents()
client.loadCommands()
client.login(process.env.DISCORD_TOKEN)
delete process.env.DISCORD_TOKEN
})()
@glitch_support Is anyone able to look into it? I need my project to be available pretty quickly.
try to run npm i
in console
Doesn’t solve the error.