Remove "Discord API Ping" frm:info + unneeded stuff.

This commit is contained in:
IDeletedSystem64 2022-01-12 00:59:17 -06:00
parent e1bef32cde
commit a08582d6d2
5 changed files with 13 additions and 33 deletions

4
.gitignore vendored
View File

@ -1,2 +1,4 @@
node_modules
package-lock.json
package-lock.json
releasenotes.txt
config.json

View File

@ -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",

View File

@ -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"

View File

@ -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

View File

@ -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 = {