Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
LachlanDev committed Nov 22, 2020
1 parent 7593f23 commit 6cb6d60
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 12 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<img src="https://i.imgur.com/eR62tlO.png" height="300">
Expand All @@ -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)
</br>
</br>
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion source/commands/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })

};
10 changes: 5 additions & 5 deletions source/commands/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
}
Expand All @@ -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
Expand All @@ -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 })
}
}
Expand All @@ -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 })
}
}
Expand Down
10 changes: 5 additions & 5 deletions source/commands/repo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
}
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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();
Expand All @@ -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 })
}
}
Expand Down

0 comments on commit 6cb6d60

Please sign in to comment.