From 6cb6d60acf3ee8952d4d174191366933fc86e7ca Mon Sep 17 00:00:00 2001 From: PapaSnags Date: Sun, 22 Nov 2020 12:08:07 +1100 Subject: [PATCH] update --- README.md | 8 +++++++- package-lock.json | 11 +++++++++++ source/commands/help.js | 2 +- source/commands/profile.js | 10 +++++----- source/commands/repo.js | 10 +++++----- 5 files changed, 29 insertions(+), 12 deletions(-) create mode 100644 package-lock.json diff --git a/README.md b/README.md index 1c7b216..7f21ea6 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,12 @@ An Open Source Discord BOT that gets in depth information about users and reposi * Repositories - **Usage:** g!repo PapaSnags * Help - **Usage:** g!help +## Changelog +* **1.3 (Current)** - Added version number - 22nd November 2020 +* **1.2** - Fixed errors - 16th November 2020 +* **1.1** - Redesigned repo command - 14th November 2020 +* **1.0** - Initial Release - 12th November 2020 + ## Preview ### Profile Lookup / Repository Lookup @@ -34,4 +40,4 @@ __Created by PapaSnags#1555__ * [Website](https://papa-snags.com/projects/PLUG/) * [Twitter](https://twitter.com/PapaSnags) * [Discord Server](https://discord.com/invite/w7B5nKB) -
+
\ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..377af66 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,11 @@ +{ + "requires": true, + "lockfileVersion": 1, + "dependencies": { + "dblapi.js": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/dblapi.js/-/dblapi.js-2.4.1.tgz", + "integrity": "sha512-g+u1inF/qOLit5qPK4hBGk5pKL1vy09uBLV+nukkRMvw2S9D1PyiyO70n4fboUXOgbExPp6Sho/Y782OqQOUiQ==" + } + } +} diff --git a/source/commands/help.js b/source/commands/help.js index 716318e..b9fe318 100644 --- a/source/commands/help.js +++ b/source/commands/help.js @@ -10,7 +10,7 @@ exports.run = (client, message, args) =>{ {name: "Repositories", value: "Lookup a GitHub user's repositories. (Sorted by created date) \n **Usage:** g!repo PapaSnags\n"}, {name: "Help", value: "Sends This Help Message \n **Usage:** g!help\n"} ) - .setFooter("GitHub Stats BOT Made by PapaSnags#1555", "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png") + .setFooter("GitHub Stats BOT Made by PapaSnags#1555 v1.3", "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png") message.channel.send({embed: help }) }; diff --git a/source/commands/profile.js b/source/commands/profile.js index 0246288..ac6c213 100644 --- a/source/commands/profile.js +++ b/source/commands/profile.js @@ -30,7 +30,7 @@ exports.run = (client, message, args) =>{ const error = new discord.MessageEmbed() .setColor('#b434eb') .addField('An Error Has occured', `Please try again, or contact PapaSnags#1555`) - .setFooter("GitHub Stats BOT Made by PapaSnags#1555", "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png") + .setFooter("GitHub Stats BOT Made by PapaSnags#1555 v1.3", "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png") message.channel.send({embed: error }) return } @@ -40,7 +40,7 @@ exports.run = (client, message, args) =>{ const usernf = new discord.MessageEmbed() .setColor('#b434eb') .addField('User Not Found', `Please try again and check the spelling.`) - .setFooter("GitHub Stats BOT Made by PapaSnags#1555", "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png") + .setFooter("GitHub Stats BOT Made by PapaSnags#1555 v1.3", "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png") message.channel.send({embed: usernf }) return } @@ -64,7 +64,7 @@ exports.run = (client, message, args) =>{ .addField('Followers', numformat(jsonprased.followers), true) .addField('Following', numformat(jsonprased.following), true) .addField('Joined:',`${jsonprased.created_at}`.replace(/T/, ' ').replace(/\..+/, '').split(' ')[0]) - .setFooter("GitHub Stats BOT Made by PapaSnags#1555", "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png") + .setFooter("GitHub Stats BOT Made by PapaSnags#1555 v1.3", "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png") message.channel.send({embed: profile }) } else @@ -83,7 +83,7 @@ exports.run = (client, message, args) =>{ .addField('Followers', numformat(jsonprased.followers), true) .addField('Following', numformat(jsonprased.following), true) .addField('Joined:',`${jsonprased.created_at}`.replace(/T/, ' ').replace(/\..+/, '').split(' ')[0]) - .setFooter("GitHub Stats BOT Made by PapaSnags#1555", "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png") + .setFooter("GitHub Stats BOT Made by PapaSnags#1555 v1.3", "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png") message.channel.send({embed: profile }) } } @@ -92,7 +92,7 @@ exports.run = (client, message, args) =>{ const error = new discord.MessageEmbed() .setColor('#b434eb') .addField('An Error Has occured', `Please try again, or contact PapaSnags#1555`) - .setFooter("GitHub Stats BOT Made by PapaSnags#1555", "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png") + .setFooter("GitHub Stats BOT Made by PapaSnags#1555 v1.3", "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png") message.channel.send({embed: error }) } } diff --git a/source/commands/repo.js b/source/commands/repo.js index 48478e1..eb245e8 100644 --- a/source/commands/repo.js +++ b/source/commands/repo.js @@ -23,7 +23,7 @@ exports.run = (client, message, args) =>{ const error = new discord.MessageEmbed() .setColor('#b434eb') .addField('An Error Has occured', `Please try again, or contact PapaSnags#1555`) - .setFooter("GitHub Stats BOT Made by PapaSnags#1555", "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png") + .setFooter("GitHub Stats BOT Made by PapaSnags#1555 v1.3", "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png") message.channel.send({embed: error }) return } @@ -33,7 +33,7 @@ exports.run = (client, message, args) =>{ const usernf = new discord.MessageEmbed() .setColor('#b434eb') .addField('User Not Found', `Please try again and check the spelling.`) - .setFooter("GitHub Stats BOT Made by PapaSnags#1555", "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png") + .setFooter("GitHub Stats BOT Made by PapaSnags#1555 v1.3", "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png") message.channel.send({embed: usernf }) return } @@ -68,7 +68,7 @@ exports.run = (client, message, args) =>{ const usernp = new discord.MessageEmbed() .setColor('#b434eb') .addField(`Cannot find any Repositories by ${args[0]}`, `Please try again, or search another user.`) - .setFooter("GitHub Stats BOT Made by PapaSnags#1555", "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png") + .setFooter("GitHub Stats BOT Made by PapaSnags#1555 v1.3", "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png") message.channel.send({embed: usernp }) } const FieldsEmbed = new Pagination.FieldsEmbed() @@ -100,7 +100,7 @@ exports.run = (client, message, args) =>{ .setTitle(`User Repo Info - @${args[0]}`) .setURL(`https://github.com/${args[0]}?tab=repositories`) .setThumbnail(jsonprased[0].owner.avatar_url) - .setFooter("GitHub Stats BOT Made by PapaSnags#1555", "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png") + .setFooter("GitHub Stats BOT Made by PapaSnags#1555 v1.3", "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png") .setDescription(`Repositories by ${args[0]} (Sorted by created date. Max 5)`); await FieldsEmbed.build(); @@ -114,7 +114,7 @@ exports.run = (client, message, args) =>{ const error = new discord.MessageEmbed() .setColor('#b434eb') .addField('An Error Has occured', `Please try again, or contact PapaSnags#1555`) - .setFooter("GitHub Stats BOT Made by PapaSnags#1555", "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png") + .setFooter("GitHub Stats BOT Made by PapaSnags#1555 v1.3", "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png") message.channel.send({embed: error }) } }