nodbot/commands/joints.js

12 lines
364 B
JavaScript
Raw Normal View History

2021-07-20 20:41:35 +00:00
module.exports = {
name: 'joints',
description: 'Get a list of the phrases saved for .joint',
execute(message, file) {
let phrases = [];
2021-07-20 20:41:35 +00:00
for (const phrase of message.client.potphrases.map(potphrase => potphrase.content)) {
phrases.push(phrase);
2021-07-20 20:41:35 +00:00
}
message.channel.send('Here are all the `.joint` phrases I have saved:\n\n' + phrases.join('\n'));
2021-07-20 20:41:35 +00:00
}
}