diff --git a/commands/info.js b/commands/info.js index 4989d73..cee00d1 100644 --- a/commands/info.js +++ b/commands/info.js @@ -1,6 +1,6 @@ module.exports = { - + name: 'info', description: 'Shows bot and host information', execute(client, message, args) { @@ -21,13 +21,13 @@ module.exports = { let uptime = `${days}**, **${hours}**, **${minutes}**, **${seconds}`; return uptime; }; - - -const version = ("Public Test Release 2") + + +const version = ("Public Test Buld 3, Based on dev Build 424") const release = ("anitrox_ptb") const os = require("os") - + const embed = { "title": "<:NyabotInfo:697145463350231040> Information about Anitrox", "description": "Everything you've ever wanted to know about Anitrox!", @@ -72,7 +72,7 @@ const version = ("Public Test Release 2") "name": "<:cpu:793672442056802354> CPU Type", "value": process.arch }, - + { "name": "<:hostos:793866961675223090> OS Type", "value": process.platform + " / " + os.version() diff --git a/commands/userinfo.js b/commands/userinfo.js index 42ddd99..fbcd6dd 100644 --- a/commands/userinfo.js +++ b/commands/userinfo.js @@ -1,52 +1,42 @@ -const { User } = require("discord.js"); - module.exports = { - - name: 'userinfo', - description: 'Shows information about you or another user.', - execute(client, message, args) { - const taggedUser = message.mentions.users.first(); - - //Actual code - const embed = { - "title": "<:userinfo:793885335498522685> **User Information**", - "description": "Everything you've ever wanted to know about **" + taggedUser.username + ("!**"), - "color": 11038194, - - "footer": { - "icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Anitrox © IDeletedSystem64 2018-2021. All Rights Reserved" - }, - "thumbnail": { - "url": taggedUser.displayAvatarURL({ dynamic: true }) - }, - "fields": [ - { - "name": "<:userquestion:793984046912110633> **Full Username**", - "value": taggedUser.username + ("#") + taggedUser.discriminator - }, - { - "name": "<:userquestion:793984046912110633> User Status", - "value": taggedUser.status, - "value": taggedUser.presence - }, - { - "name": "<:userquestion:793984046912110633> User ID", - "value": taggedUser.id - }, - { - "name": "<:userquestion:793984046912110633> User Joined Discord", - "value": taggedUser.CreatedAt, - "inline": true - }, - { - "name": "<:userquestion:793984046912110633> User Joined Server", - "value": "tba", - "inline": true - } - ] - }; - message.channel.send({ embed }); - } - }; \ No newline at end of file + name: "userinfo", + description: "Gets info about an user, such as ID, Discord Join date and more.", + execute(client, message, args) { + + const taggedUser = message.mentions.users.first(); + const embed = { + "title": "Everything you've ever wanted to know about taggedUser.username!", + "color": 172544, + "footer": { + "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", + "text": "Made with ❤ in Illinois | Anitrox © 2018-2021 IDeletedSystem64" + }, + // This should get the user icon to display as the command thumbnail. + "thumbnail": { + "url": "https://cdn.discordapp.com/embed/avatars/0.png" + }, + "fields": [ + { + "name": "Full Username", + "value": taggedUser.tag + }, + { + "name": "User ID", + "value": "``" + taggedUser.id + "``" + }, + { + "name": "User Joined Discord", + "value": taggedUser.CreatedAt, + "inline": true + }, + { + "name": "User Joined Server", + "value": "are inline fields", + "inline": true + } + ] + }; + message.channel.send({ embed }); + } + }