mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Credit Command
This commit is contained in:
@@ -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' });
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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 }) {
|
||||
|
||||
@@ -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 }) {
|
||||
|
||||
Reference in New Issue
Block a user