added alias, made sure triggering message deletes if no args exist

This commit is contained in:
rhearmas 2019-12-20 20:37:31 -05:00
parent 2a696fe72d
commit 7175ce8fb5

View file

@ -1,7 +1,11 @@
const got = require('got');
exports.run = async (client, message, args, level) => {
if (!args[0]) return message.reply('you must specify a repository or search term!');
if (!args[0]) {
message.reply('you must specify a repository or search term!');
message.delete();
return;
}
const input = args.join(' ');
@ -73,7 +77,7 @@ exports.info = {
exports.conf = {
enabled: true,
guildOnly: false,
aliases: [],
aliases: ['git'],
permLevel: "User"
};