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