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) {
|
2021-07-22 02:00:17 +00:00
|
|
|
let phrases = [];
|
2021-07-20 20:41:35 +00:00
|
|
|
|
2021-07-22 02:00:17 +00:00
|
|
|
for (const phrase of message.client.potphrases.map(potphrase => potphrase.content)) {
|
|
|
|
phrases.push(phrase);
|
2021-07-20 20:41:35 +00:00
|
|
|
}
|
2021-07-22 02:00:17 +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
|
|
|
}
|
|
|
|
}
|