added alias, made sure triggering message deletes if no args exist
This commit is contained in:
parent
2a696fe72d
commit
7175ce8fb5
1 changed files with 6 additions and 2 deletions
|
@ -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"
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue