From 884896703a9120f04a4e2d3c148da8c6e8993b3b Mon Sep 17 00:00:00 2001 From: Yusu Date: Sat, 23 Dec 2023 10:37:01 +0100 Subject: [PATCH 1/2] Added artemis command --- src/commands/chatters/artemis.ts | 61 ++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 src/commands/chatters/artemis.ts diff --git a/src/commands/chatters/artemis.ts b/src/commands/chatters/artemis.ts new file mode 100644 index 0000000..3d6346e --- /dev/null +++ b/src/commands/chatters/artemis.ts @@ -0,0 +1,61 @@ +import { + Discord, + SimpleCommand, + SimpleCommandMessage, + SimpleCommandOption, + SimpleCommandOptionType, +} from 'discordx' + +@Discord() +class Artemis { + protected facts = [ + '0. Lord Of The Rings Facts Infographics', + '1. Viggo Mortensen bought 3 horses that were used in the films.', + '2. The son of Tolkien does not like the LotR books that Peter Jackson wrote.', + '3. Sean Bean climbed the mountains of New Zealand daily to get to the set.', + '4. The LotR movies cost less to make compared to the Hobbit films.', + '5. Christopher Lee met Tolkien by coincidence.', + '6. The Beatles tried to make their own LotR movie.', + '7. Merry originally had a different name.', + '8. Peter Jackson\'s LotR movies takes almost half a day to finish.', + '9. All the mountains on Saturn\'s largest moon is named after the mountains from LotR.', + '10. Elijah Wood immersed himself in the role of Frodo for his audition tape.', + '11. John Rhys-Davies refused to get his matching Elvish tattoo with his fellowship. ', + '12. Tolkien did not receive the total amount he was owed for the LotR Trilogy.', + '13. Filming the destruction of Sauron\'s tower was difficult.', + '14. The LotR trilogy could not fully make use of CGI for its effects. ', + '15. Tolkien originally did not want to name the third book The Return of the King.', + '16. Tolkien and his wife\'s gravestones are engraved with two names from LotR.', + '17. The University of California offers a LotR dorm for its freshmen.', + '18. Frodo is depicted as a clumsy character in the films.', + '19. Christopher Lee has always wanted to play the role of Gandalf. ', + '20. Nicolas Cage was originally supposed to play the role of Aragorn.', + '21. The fight scenes were choreographed by an Olympic fencer.', + '22. Viggo Mortensen did his stunts without a double.', + '23. Orlando Bloom broke his ribs during filming. ', + '24. John Rhy-Davies is the tallest actor in the fellowship. ', + '25. Peter Jackson\'s daughter makes several cameos throughout the films.', + '26. Denethor could not light the pyre on fire.', + '27. Green ping pong balls were used as stand-ins. ', + '28. The Queen of Denmark illustrated the Danish edition of LotR.', + '29. Nazgul screeches were made with plastic cups. ', + '30. The Gollum Effect was loosely based on the withdrawal symptoms of heroin addicts.', + '31. The filming of the battle of Helm\'s Deep took forever to finish.', + '32. Gollums were originally kind creatures. ', + '33. The Dead Marshes were said to be based on Tolkien\'s experience in WWI.', + '34. Sean Astin was knocked unconscious during filming.', + '35. The LotR franchise has won every award it was nominated for.', + 'https://www.youtube.com/watch?v=xqeYKf8tdsU', // Bonus answer + ] + + @SimpleCommand({ name: 'artemis', description: 'Artemis', prefix: '!' }) + async simple( + @SimpleCommandOption({ name: 'text', type: SimpleCommandOptionType.String }) text: string | undefined, + command: SimpleCommandMessage + ) { + await command.message.reply({ + content: this.facts[Math.floor(Math.random() * this.facts.length)] + }) + return + } +} From 76e12faf95ad3b069495d1a40c3bfc2564505347 Mon Sep 17 00:00:00 2001 From: Yusu Date: Sat, 23 Dec 2023 10:54:04 +0100 Subject: [PATCH 2/2] Fix lint --- src/commands/chatters/artemis.ts | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/src/commands/chatters/artemis.ts b/src/commands/chatters/artemis.ts index 3d6346e..74e7f04 100644 --- a/src/commands/chatters/artemis.ts +++ b/src/commands/chatters/artemis.ts @@ -1,10 +1,4 @@ -import { - Discord, - SimpleCommand, - SimpleCommandMessage, - SimpleCommandOption, - SimpleCommandOptionType, -} from 'discordx' +import { Discord, SimpleCommand, SimpleCommandMessage, SimpleCommandOption, SimpleCommandOptionType } from 'discordx' @Discord() class Artemis { @@ -17,15 +11,15 @@ class Artemis { '5. Christopher Lee met Tolkien by coincidence.', '6. The Beatles tried to make their own LotR movie.', '7. Merry originally had a different name.', - '8. Peter Jackson\'s LotR movies takes almost half a day to finish.', - '9. All the mountains on Saturn\'s largest moon is named after the mountains from LotR.', + "8. Peter Jackson's LotR movies takes almost half a day to finish.", + "9. All the mountains on Saturn's largest moon is named after the mountains from LotR.", '10. Elijah Wood immersed himself in the role of Frodo for his audition tape.', '11. John Rhys-Davies refused to get his matching Elvish tattoo with his fellowship. ', '12. Tolkien did not receive the total amount he was owed for the LotR Trilogy.', - '13. Filming the destruction of Sauron\'s tower was difficult.', + "13. Filming the destruction of Sauron's tower was difficult.", '14. The LotR trilogy could not fully make use of CGI for its effects. ', '15. Tolkien originally did not want to name the third book The Return of the King.', - '16. Tolkien and his wife\'s gravestones are engraved with two names from LotR.', + "16. Tolkien and his wife's gravestones are engraved with two names from LotR.", '17. The University of California offers a LotR dorm for its freshmen.', '18. Frodo is depicted as a clumsy character in the films.', '19. Christopher Lee has always wanted to play the role of Gandalf. ', @@ -34,15 +28,15 @@ class Artemis { '22. Viggo Mortensen did his stunts without a double.', '23. Orlando Bloom broke his ribs during filming. ', '24. John Rhy-Davies is the tallest actor in the fellowship. ', - '25. Peter Jackson\'s daughter makes several cameos throughout the films.', + "25. Peter Jackson's daughter makes several cameos throughout the films.", '26. Denethor could not light the pyre on fire.', '27. Green ping pong balls were used as stand-ins. ', '28. The Queen of Denmark illustrated the Danish edition of LotR.', '29. Nazgul screeches were made with plastic cups. ', '30. The Gollum Effect was loosely based on the withdrawal symptoms of heroin addicts.', - '31. The filming of the battle of Helm\'s Deep took forever to finish.', + "31. The filming of the battle of Helm's Deep took forever to finish.", '32. Gollums were originally kind creatures. ', - '33. The Dead Marshes were said to be based on Tolkien\'s experience in WWI.', + "33. The Dead Marshes were said to be based on Tolkien's experience in WWI.", '34. Sean Astin was knocked unconscious during filming.', '35. The LotR franchise has won every award it was nominated for.', 'https://www.youtube.com/watch?v=xqeYKf8tdsU', // Bonus answer @@ -54,7 +48,7 @@ class Artemis { command: SimpleCommandMessage ) { await command.message.reply({ - content: this.facts[Math.floor(Math.random() * this.facts.length)] + content: this.facts[Math.floor(Math.random() * this.facts.length)], }) return }