src/main/ChatController.js
/**
 * Returns a random phrase of the day
 */
Returns a random phrase of the day
Returns a random phrase of the day
function randomPhrase() {
    const phrases = [
        "For those who seek perfection there can be no rest on this side of the grave.",
        "Success is commemorated; Failure merely remembered.",
        "Even a man who has nothing can still offer his time.",
        "It is better to code for the Emperor than to live for yourself.",
        "True Happiness stems only from Duty.",
        "Without Javascript there is nothing.",
        "Victory needs no explanation, defeat allows none.",
        "Walk softly, and make an intricate encryption.",
        "The Emperor guides my resolve.",
        "He who stands with JS shall be my brother.",
        "Duty earns salvation.",
        "Heresy grows from idleness.",
        "A suspicious mind is a healthy mind.",
        "Foolish are those who fear nothing, yet claim to know everything.",
        "We win this day or we die trying! There is no retreat!",
        "To each of us falls a task, and all the Emperor requires of us Engineers is that we stand the line.",
        "We are all pawns of something even greater: memes, the DNA of the soul.",
        "Nanomachines, Son. They harden in response to physical trauma.",
        "Every lone spirit doubts his strength.",
        "Excuses are the refuge of the weak.",
        "Facts are chains that bind perception and fetter truth. For a man can remake the world if he has a dream and no facts to cloud his mind.",
        "Hard work conquers everything.",
        "He who lives for nothing is nothing.",
        "Honor is what a pure mind knows about itself.",
        "Hope is the first step on the road to disappointment."
    ];
    $(".phrase").text(phrases[Encrypter.randomNumber(phrases.length)]);
}
function randomPhrase ( ) { const phrases = [ "For those who seek perfection there can be no rest on this side of the grave." , "Success is commemorated; Failure merely remembered." , "Even a man who has nothing can still offer his time." , "It is better to code for the Emperor than to live for yourself." , "True Happiness stems only from Duty." , "Without Javascript there is nothing." , "Victory needs no explanation, defeat allows none." , "Walk softly, and make an intricate encryption." , "The Emperor guides my resolve." , "He who stands with JS shall be my brother." , "Duty earns salvation." , "Heresy grows from idleness." , "A suspicious mind is a healthy mind." , "Foolish are those who fear nothing, yet claim to know everything." , "We win this day or we die trying! There is no retreat!" , "To each of us falls a task, and all the Emperor requires of us Engineers is that we stand the line." , "We are all pawns of something even greater: memes, the DNA of the soul." , "Nanomachines, Son. They harden in response to physical trauma." , "Every lone spirit doubts his strength." , "Excuses are the refuge of the weak." , "Facts are chains that bind perception and fetter truth. For a man can remake the world if he has a dream and no facts to cloud his mind." , "Hard work conquers everything." , "He who lives for nothing is nothing." , "Honor is what a pure mind knows about itself." , "Hope is the first step on the road to disappointment." ] ; $ ( ".phrase" ) . text ( phrases [ Encrypter . randomNumber ( phrases . length ) ] ) ; }
Returns a random phrase of the day
Returns a random phrase of the day