mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 13:56:25 +02:00
Add tons of quotes
This commit is contained in:
@@ -7,12 +7,20 @@ module.exports = class QuoteCommand extends Command {
|
||||
name: 'quote',
|
||||
group: 'random-res',
|
||||
memberName: 'quote',
|
||||
description: 'Responds with a random quote.'
|
||||
description: 'Responds with a random quote.',
|
||||
credit: [
|
||||
{
|
||||
name: 'Luke Peavey',
|
||||
url: 'https://github.com/lukePeavey',
|
||||
reason: 'Quotes Data',
|
||||
reasonURL: 'https://github.com/lukePeavey/quotable/blob/master/data/sample/quotes.json'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
run(msg) {
|
||||
const quote = quotes[Math.floor(Math.random() * quotes.length)];
|
||||
return msg.say(`${quote.quote} - _${quote.author}_`);
|
||||
return msg.say(`${quote.content} - _${quote.author}_`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user