Credit Command

This commit is contained in:
Daniel Odendahl Jr
2019-04-14 00:03:38 +00:00
parent c8f74fddf7
commit 45c8d62dd5
189 changed files with 1314 additions and 39 deletions
+2
View File
@@ -6,5 +6,7 @@ module.exports = class XiaoCommand extends Command {
this.argsSingleQuotes = info.argsSingleQuotes || false;
this.throttling = info.throttling || { usages: 1, duration: 2 };
this.credit = info.credit || [];
this.credit.push({ name: 'Dragon Fire', url: 'https://github.com/dragonfire535' });
}
};
+4
View File
@@ -8,6 +8,10 @@ module.exports = class ImgurAlbumCommand extends Command {
this.albumID = info.albumID;
this.cache = null;
this.credit.push({
name: 'Imgur API',
url: 'https://apidocs.imgur.com/'
});
}
async run(msg, { user }) {
+4
View File
@@ -7,6 +7,10 @@ module.exports = class SubredditCommand extends Command {
this.subreddit = info.subreddit;
this.postType = info.postType ? Array.isArray(info.postType) ? info.postType : [info.postType] : null;
this.credit.push({
name: 'Reddit',
url: 'https://www.reddit.com/'
});
}
async run(msg, { subreddit }) {