Added quotes to ping command
This commit is contained in:
parent
390c0ee840
commit
51ec1189c0
@ -17,6 +17,7 @@
|
||||
import { SlashCommand } from '../../../interfaces/index.js';
|
||||
import DiscordClient from '../../../DiscordClient.js';
|
||||
import InvokerWrapper from '../../wrappers/InvokerWrapper.js';
|
||||
import Quotes from '../../../../constants/Quotes.js';
|
||||
|
||||
class PingCommand extends SlashCommand
|
||||
{
|
||||
@ -37,7 +38,10 @@ class PingCommand extends SlashCommand
|
||||
const { ping } = this.client.ws;
|
||||
const number = (ping / 40);
|
||||
const repeat = number > 1 ? number : 1;
|
||||
return invoker.reply(`P${'o'.repeat(repeat)}ng! \`${ping}ms\``, { emoji: 'success' });
|
||||
|
||||
const index = Math.floor(Quotes.length * Math.random());
|
||||
const [ quote, author ] = Quotes[index];
|
||||
return invoker.reply(`P${'o'.repeat(repeat)}ng! \`${ping}ms\`\n\n> ${quote.replaceAll('\n', '\n> ')}\n\\- *${author}*`, { emoji: 'success' });
|
||||
}
|
||||
|
||||
}
|
||||
|
23
src/constants/Quotes.ts
Normal file
23
src/constants/Quotes.ts
Normal file
@ -0,0 +1,23 @@
|
||||
export default [
|
||||
['Pacifism is objectively pro-fascist. This is elementary common sense. If you hamper the war effort of one side, you automatically help out that of the other. Nor is there any real way of remaining outside such a war as the present one. In practice, \'he that is not with me is against me\'.', 'George Orwell'],
|
||||
['If people are good only because they fear punishment, and hope for reward, then we are a sorry lot indeed.', 'Albert Einstein'],
|
||||
['The ultimate tragedy is not the oppression and cruelty by the bad people but the silence over that by the good people.', 'Martin Luther King Jr.'],
|
||||
['The Three Laws of Robotics are:\n**1.** A robot may not injure a human being or, through inaction, allow a human being to come to harm.\n**2.** A robot must obey the orders given it by human beings except where such orders would conflict with the First Law.\n**3.** A robot must protect its own existence as long as such protection does not conflict with the First or Second Laws.', 'Isaac Asimov'],
|
||||
['That\'s why they call it the American Dream, because you have to be asleep to believe it.', 'George Carlin'],
|
||||
['Think of how stupid the average person is, and realize half of them are stupider than that.', 'George Carlin'],
|
||||
['In another life, I would have really liked just doing laundry and taxes with you.', 'Waymond Wang (Everything Everywhere All at Once)'],
|
||||
['I\'m not upset that you lied to me, I\'m upset that I can\'t trust you again.', 'Friedrich Nietzsche'],
|
||||
['Religion is the impotence of the human mind to deal with occurrences it cannot understand.', 'Karl Marx'],
|
||||
['He wears a mask, and his face grows to fit it.', 'George Orwell'],
|
||||
['Darkness cannot drive out darkness: only light can do that. Hate cannot drive out hate: only love can do that.', 'Martin Luther King Jr.'],
|
||||
['Without music, life would be a mistake.', 'Friedrich Nietzsche'],
|
||||
['People don\'t get what they deserve. They just get what they get. There\'s nothing any of us can do about it.', 'Gregory House (House)'],
|
||||
['Rational arguments don\'t usually work on religious people. Otherwise there would be no religious people.', 'Gregory House (House)'],
|
||||
['It\'s never lupus', 'Gregory House (House)'],
|
||||
['Almost dying changes nothing. Dying changes everything.', 'Gregory House (House)'],
|
||||
['Do not go gentle into that good night,\nOld age should burn and rave at close of day;\nRage, rage against the dying of the light.', 'Dylan Thomas'],
|
||||
['Mankind was born on Earth. It was never meant to die here.','Joseph Cooper (Interstellar)'],
|
||||
['Once you\'re a parent, you\'re the ghost of your children\'s future.','Joseph Cooper (Interstellar)'],
|
||||
['When we deny the EVIL within ourselves, we dehumanize ourselves, and we deprive ourselves not only of our own destiny but of any possibility of dealing with the EVIL of others.','J. Robert Oppenheimer'],
|
||||
['Are you not entertained? Are you not entertained? Is this not why you are here?', 'Maximus Decimus Meridius (Gladiator)']
|
||||
]
|
Loading…
Reference in New Issue
Block a user