Update main branch #15

Merged
Navy.gif merged 21 commits from beta into main 2024-07-26 16:40:55 +02:00
6 changed files with 1675 additions and 1635 deletions

View File

@ -1,3 +1,7 @@
compressionLevel: mixed
enableGlobalCache: false
nodeLinker: node-modules
npmRegistryServer: "https://registry.corgi.wtf"

View File

@ -40,4 +40,8 @@ New feature branch -> development (local bots) -> alpha (QA) -> beta (GalacticTe
- Proper workflows with gitea actions.
- Linter
- Build test
- Unit tests
- Unit tests
# Contributors
**Nolan** - https://github.com/noolaan
Major framework contributions to V3 development.

View File

@ -11,7 +11,8 @@
"prefix": "!",
"developers": [
"132777808362471424",
"187613017733726210"
"187613017733726210",
"132620781791346688"
],
"developmentMode": false,
"libraryOptions": {
@ -35,7 +36,11 @@
"GuildMessageReactions",
"DirectMessages"
],
"invalidRequestWarningInterval": 500
"invalidRequestWarningInterval": 500,
"rest": {
"timeout": 30000,
"retries": 5
}
},
"invite": "https://discord.gg/WDCTKGp",
"slashCommands": {

View File

@ -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
View 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)']
]

3262
yarn.lock

File diff suppressed because it is too large Load Diff