galactic-bot/structure/client/components/commands/utility/Test.js

78 lines
3.7 KiB
JavaScript
Raw Normal View History

const { Command } = require('../../../../interfaces/');
class PingCommand extends Command {
constructor(client) {
super(client, {
name: 'test',
module: 'utility'
});
this.client = client;
}
async execute(message) {
// const text = `Evelia Ernest
// Horacio Huey
// Christen Cyr
// Jada Janus
// Vanita Valero
// Abdul Addario
// Daniell Dingle
// Tangela Trull
// Jeanmarie Jimenez
// Georgia Gourlay
// Valery Vergara
// Chasidy Conrad
// Marlena Malin
// Kristeen Kesselman
// Jo Jeffries
// Terina Tworek
// Geri Gilbert
// Phuong Pratte
// Juanita Jess
// Audrea Ammon
// Shakita Stalter
// Rosamond Reese
// Shani Solorio
// Archie Augustyn
// Bridgett Behrman
// Susann Schmaltz
// Edgardo Engman
// Valerie Vice
// Cheyenne Claeys
// Kristina Kastner
// Lanita Labrum
// Kai Knick
// Lucien Lee
// Tameika Turley
// Octavia Obermiller
// Kia Kravitz
// Justina Jury
// Cortney Coppa
// Johnathan Joshi
// Arden Alphin
// Francis Feinberg
// Sal Suits
// Myles Marden
// Emmitt Engelmann
// Tara Tibbits
// Su Sprowl
// Isadora Ingrassia
// Janell Jarrard
// Kenyatta Kenley
// Mabelle Mccrady `;
// const names = text.split('\n').map((n) => `"${n.trim()}"`);
// message.respond(`[${names.join(', ')}]`);
const array1 = ["Ashly Armistead", "Jenifer James", "Eleonora Espinosa", "Eleanore Ellerbee", "Marguerite Means", "Lore Lazar", "Cherilyn Calero", "Olevia Olvera", "Herman Horvat", "Elvin Elfrink", "Jennine Julian", "Pei Plude", "Kenisha Kirts", "Sherly Starbird", "Lashanda Louder", "Elizabeth Eakle", "Lyda Leard", "Penelope Petri", "Kimi Kissel", "Crista Crowe", "Mallory Mehta", "Bettina Bregman", "Marcie Moran", "James Jiles", "Clifton Capshaw", "Cher Curlee", "Brigid Bonier", "Lana Lehman", "Carletta Chalker", "Valene Viator", "Eugena Eder", "Samatha Shivers", "Hoyt Hard", "Karena King", "Tiffani Trott", "Joye Jeremiah", "Emely Espino", "Rowena Rowan", "Gillian Godbey", "Hailey Huggard", "Lillian Lander", "Shani Szabo", "Liberty Lamorte", "Tomika Thrift", "Garrett Grogan", "Vallie Valazquez", "Shin Secor", "Deangelo Divito", "Kacy Kimball", "Norris Northway"];
const array2 = ["Evelia Ernest", "Horacio Huey", "Christen Cyr", "Jada Janus", "Vanita Valero", "Abdul Addario", "Daniell Dingle", "Tangela Trull", "Jeanmarie Jimenez", "Georgia Gourlay", "Valery Vergara", "Chasidy Conrad", "Marlena Malin", "Kristeen Kesselman", "Jo Jeffries", "Terina Tworek", "Geri Gilbert", "Phuong Pratte", "Juanita Jess", "Audrea Ammon", "Shakita Stalter", "Rosamond Reese", "Shani Solorio", "Archie Augustyn", "Bridgett Behrman", "Susann Schmaltz", "Edgardo Engman", "Valerie Vice", "Cheyenne Claeys", "Kristina Kastner", "Lanita Labrum", "Kai Knick", "Lucien Lee", "Tameika Turley", "Octavia Obermiller", "Kia Kravitz", "Justina Jury", "Cortney Coppa", "Johnathan Joshi", "Arden Alphin", "Francis Feinberg", "Sal Suits", "Myles Marden", "Emmitt Engelmann", "Tara Tibbits", "Su Sprowl", "Isadora Ingrassia", "Janell Jarrard", "Kenyatta Kenley", "Mabelle Mccrady"];
const newArray = [...new Set([...array1, ...array2])];
return message.respond(`[${newArray.map((n) => `"${n}"`).join(', ')}]`);
}
}
module.exports = PingCommand;