Added some logging for stuff on boot
This commit is contained in:
parent
c07daa81cf
commit
343fd1895e
16
start.js
16
start.js
|
@ -1,9 +1,12 @@
|
||||||
console.log('Preparing to start!')
|
console.log('(Info) Preparing to start!')
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
|
console.log('(Info) Loaded Filesystem successfully!')
|
||||||
const Discord = require('discord.js');
|
const Discord = require('discord.js');
|
||||||
|
console.log('(Info) Loaded Discord successfully!')
|
||||||
const { build, release, prefix, token } = require('./config.json');
|
const { build, release, prefix, token } = require('./config.json');
|
||||||
const { denied, error, info, success, warning } = require('./icons.json');
|
const { denied, error, info, success, warning } = require('./icons.json');
|
||||||
const os = require("os");
|
const os = require("os");
|
||||||
|
console.log('(Info) Loaded OS successfully!')
|
||||||
|
|
||||||
const activities_list = [
|
const activities_list = [
|
||||||
"with np!help",
|
"with np!help",
|
||||||
|
@ -25,7 +28,6 @@ const activities_list = [
|
||||||
"videos on Hulu",
|
"videos on Hulu",
|
||||||
"American Truck Simulator",
|
"American Truck Simulator",
|
||||||
"with my users!",
|
"with my users!",
|
||||||
"with Sophies skirt",
|
|
||||||
"Euro Truck Simulator 2",
|
"Euro Truck Simulator 2",
|
||||||
"with a screwdriver",
|
"with a screwdriver",
|
||||||
"Found new hardware.",
|
"Found new hardware.",
|
||||||
|
@ -36,7 +38,7 @@ console.log('Starting! This should only take a moment.')
|
||||||
const client = new Discord.Client();
|
const client = new Discord.Client();
|
||||||
client.commands = new Discord.Collection();
|
client.commands = new Discord.Collection();
|
||||||
const footicon = "https://cdn.discordapp.com/attachments/803658122299572255/805506708352008232/system64.png"
|
const footicon = "https://cdn.discordapp.com/attachments/803658122299572255/805506708352008232/system64.png"
|
||||||
const footer = "Made with ❤ in Illinois | Anitrox © 2018-2021 IDeletedSystem64"
|
const footer = "Made with ❤ in Illinois | Anitrox, by IDeletedSystem64"
|
||||||
|
|
||||||
const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));
|
const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));
|
||||||
|
|
||||||
|
@ -55,8 +57,8 @@ client.once('ready', () => {
|
||||||
console.log(' / /| | / __ \/ / __/ ___/ __ \| |/_/');
|
console.log(' / /| | / __ \/ / __/ ___/ __ \| |/_/');
|
||||||
console.log(' / ___ |/ / / / / /_/ / / /_/ /> < ');
|
console.log(' / ___ |/ / / / / /_/ / / /_/ /> < ');
|
||||||
console.log('/_/ |_/_/ /_/_/\__/_/ \____/_/|_| ')
|
console.log('/_/ |_/_/ /_/_/\__/_/ \____/_/|_| ')
|
||||||
console.log(release + " " + build)
|
console.log(release + ", " + build)
|
||||||
console.log('All Systems Go. | Anitrox (C) 2021 IDeletedSystem64.');
|
console.log("All Systems Go. | Anitrox by IDeletedSystem64 | We're now open-source! Check it out at bit.ly/anitroxsource");
|
||||||
});
|
});
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
const index = Math.floor(Math.random() * (activities_list.length - 1) + 1);
|
const index = Math.floor(Math.random() * (activities_list.length - 1) + 1);
|
||||||
|
@ -74,13 +76,13 @@ client.on('message', message => {
|
||||||
try {
|
try {
|
||||||
client.commands.get(command).execute(client, message, args, Discord);
|
client.commands.get(command).execute(client, message, args, Discord);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error
|
console.stack
|
||||||
const embed = {
|
const embed = {
|
||||||
"title": "<:AnitroxError:809651936563429416> **Well that happened...**",
|
"title": "<:AnitroxError:809651936563429416> **Well that happened...**",
|
||||||
"color": 13632027,
|
"color": 13632027,
|
||||||
"footer": {
|
"footer": {
|
||||||
"icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
"icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||||
"text": "Anitrox © IDeletedSystem64 2018-2021 All Rights Reserved."
|
"text": footer
|
||||||
},
|
},
|
||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
|
|
Reference in New Issue