From a08582d6d25dc1de78ab378fd842cb04e2c59291 Mon Sep 17 00:00:00 2001 From: IDeletedSystem64 Date: Wed, 12 Jan 2022 00:59:17 -0600 Subject: [PATCH] Remove "Discord API Ping" frm:info + unneeded stuff. --- .gitignore | 4 +++- commands/info.js | 9 ++------- config.json | 2 +- releasenotes.txt | 14 -------------- start.js | 17 +++++++---------- 5 files changed, 13 insertions(+), 33 deletions(-) diff --git a/.gitignore b/.gitignore index 25c8fdb..35cef7a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ node_modules -package-lock.json \ No newline at end of file +package-lock.json +releasenotes.txt +config.json \ No newline at end of file diff --git a/commands/info.js b/commands/info.js index 26ab987..1b3231c 100644 --- a/commands/info.js +++ b/commands/info.js @@ -3,7 +3,7 @@ module.exports = { name: 'info', description: 'Shows bot and host information', - execute(client, message, args,) { + execute(client, message, args, footer) { const { build, release } = require('../config.json'); function Uptime(uptimetype) { let totalSeconds = (uptimetype / 1000); @@ -33,7 +33,7 @@ module.exports = { "color": 9442302, "footer": { "icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64" + "text": footer }, "thumbnail": { "url": ("https://cdn.discordapp.com/avatars/576805923964715018/20f9b2815850dbbebd6d858308c90330.webp") @@ -80,11 +80,6 @@ module.exports = { "name": "<:node:793537507018145813> Node.JS Version", "value": process.version }, - { - "name": "<:Discord:793676263411679232> Discord API Ping", - "value": "tba" + " ms", - "inline": true - }, { "name": "<:hostinfo:793529505263517747> Bot Ping", "value": Math.round(client.ws.ping) + " ms", diff --git a/config.json b/config.json index 4765131..0d63523 100644 --- a/config.json +++ b/config.json @@ -1,6 +1,6 @@ { "prefix": "n!", - "token": "nOwoTaRe4lt0k3n", + "token": "IM SO EXCITED ABOUT BURGER", "ownerID": "309427567004483586", "release": "anitrox_dev", "build": "1.0 Prerelease, Based off commit 0757e1f" diff --git a/releasenotes.txt b/releasenotes.txt index 9238212..e69de29 100644 --- a/releasenotes.txt +++ b/releasenotes.txt @@ -1,14 +0,0 @@ -:anitroxaddserver: **Anitrox has been updated.** -**Old Version: Anitrox Stable Release Canidiate 1, Build 500** -**New Version: Stable Release Canidiate 2, Version PR3** -This new major release brings new features, and bug fixes to Anitrox and paves the way towards Stable release. - -**What's New** -Anitrox Source code has been released to the public, If ya want to poke around or make contributions either run ``np!opensource`` and select "Anitrox Project" -Reduced the amount of statuses that Anitrox uses, it used more lines than actual code I think >w>. Also added some new ones! -Changed the footer -Localization updates-nahjk (maybe one day? 🤔) -Simplified error message -Patched a security vulnerbility in one of the dependencies, I forget what it was but Dependabot gave me a heads up about it soo ¯\_(ツ)_ -Probably a bunch of other stuff I've forgot about 🙃 -https://www.youtube.com/watch?v=_WW2JWIv6G8 diff --git a/start.js b/start.js index 72afcce..4b8e79d 100644 --- a/start.js +++ b/start.js @@ -1,13 +1,10 @@ -console.log("(Info)" + " Preparing to start!" ) +console.log("Let's get started") const fs = require('fs'); -console.log('(Info) Loaded Filesystem successfully!') const Discord = require('discord.js'); const { MessageActionRow, MessageButton } = require('discord.js') -console.log('(Info) Loaded Discord successfully!') const { build, release, prefix, token } = require('./config.json'); const os = require("os"); -console.log('(Info) Loaded OS successfully!') const activities_list = [ "with np!help", @@ -25,7 +22,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, by IDeletedSystem64" +const footer = "Anitrox, IDeletedSystem64 2018-2022" const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js')); @@ -34,9 +31,9 @@ for (const file of commandFiles) { client.commands.set(command.name, command); } -client.on("error", (e) => console.log(Date.now + "[ERROR]" + error(e))); -client.on("warn", (e) => (Date.now + "[WARN]" + warn(e))); -// sends errors/warnings to the hosts console/terminal. crash errors ignore this +client.on("error", (e) => console.log("[ERROR]" + error(e))); +client.on("warn", (e) => ("[WARN]" + warn(e))); +// Log errors and warnings ton console. client.once('ready', () => { console.clear() console.log(' ___ _ __ '); @@ -45,7 +42,7 @@ client.once('ready', () => { console.log(' / ___ |/ / / / / /_/ / / /_/ /> < '); console.log('/_/ |_/_/ /_/_/\__/_/ \____/_/|_| ') console.log(release + ", " + build) - console.log("All Systems Go. | Anitrox by IDeletedSystem64 | We're now open-source! Check it out at bit.ly/anitroxsource"); + console.log("All Systems Go. | Anitrox by IDeletedSystem64 | meow meow :3"); }); // does a cool logo thingy on start up setInterval(() => { @@ -62,7 +59,7 @@ client.on('message', message => { if (!client.commands.has(command)) return; try { - client.commands.get(command).execute(client, message, args, Discord); + client.commands.get(command).execute(client, message, args, Discord, footer); } catch (error) { console.stack const embed = {