aboutsummaryrefslogtreecommitdiff
path: root/commands/Utility/hinfo.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/Utility/hinfo.js')
-rw-r--r--commands/Utility/hinfo.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/commands/Utility/hinfo.js b/commands/Utility/hinfo.js
new file mode 100644
index 0000000..982a3bf
--- /dev/null
+++ b/commands/Utility/hinfo.js
@@ -0,0 +1,31 @@
+/** **************************************
+ *
+ * Host Info: Plugin for PokeBot that provides the information of the host.
+ * Copyright (C) 2018 TheEdge, jtsshieh, Alee
+ *
+ * Licensed under the Open Software License version 3.0
+ *
+ * *************************************/
+
+exports.run = (bot, msg) => {
+ const { RichEmbed } = require('discord.js');
+ const os = require('os');
+ const embed = new RichEmbed()
+ .setTitle('Information on PokeBot\'s Host')
+ .addField('OS Hostname: ', os.hostname() , true)
+ .addField('NodeJS Version: ', process.versions.node , true)
+ .addField('OS Platform: ', os.platform() , true)
+ .addField('OS Version: ', os.release() , true)
+ .setColor('#000000');
+ msg.channel.send({embed});
+};
+
+exports.conf = {
+ aliases: [],
+ guildOnly: true,
+};
+
+exports.help = {
+ name: 'hinfo',
+ description: 'Gives host information to user.',
+};