diff options
author | 2019-08-15 17:49:04 -0400 | |
---|---|---|
committer | 2019-08-15 17:49:04 -0400 | |
commit | 6db0d45b7814379907d1cfa36fabf0c62c385cea (patch) | |
tree | 516e527c47e7136e09f4ec302da9f68cbe2735d9 /bot | |
parent | edited json files, added new resource, small tweaks to Embed (diff) |
edited json files, added new resource, small tweaks to Embed
Diffstat (limited to 'bot')
-rw-r--r-- | bot/resources/evergreen/game_recs/chrono_trigger.json | 7 | ||||
-rw-r--r-- | bot/resources/evergreen/game_recs/digimon_world.json | 7 | ||||
-rw-r--r-- | bot/resources/evergreen/game_recs/doom_2.json | 7 | ||||
-rw-r--r-- | bot/resources/evergreen/game_recs/skyrim.json | 10 | ||||
-rw-r--r-- | bot/seasons/evergreen/recommend_game.py | 14 |
5 files changed, 16 insertions, 29 deletions
diff --git a/bot/resources/evergreen/game_recs/chrono_trigger.json b/bot/resources/evergreen/game_recs/chrono_trigger.json index cde74b70..963da43c 100644 --- a/bot/resources/evergreen/game_recs/chrono_trigger.json +++ b/bot/resources/evergreen/game_recs/chrono_trigger.json @@ -1,12 +1,7 @@ { "title": "Chrono Trigger", "recText": "One of the best games of all time. A brilliant story involving time-travel with loveable characters. It has a brilliant score by Yasonuri Mitsuda and artwork by Akira Toriyama. With over 20 endings and New Game+, there is a huge amount of replay value here.", - "console": [ - "snes", - "gba", - "pc" - ], - "wikiLink": "https://chrono.fandom.com/wiki/Chrono_Trigger", + "wikiLink": "https://rawg.io/games/chrono-trigger-1995", "image": "https://vignette.wikia.nocookie.net/chrono/images/2/24/Chrono_Trigger_cover.jpg", "author": "352635617709916161" }
\ No newline at end of file diff --git a/bot/resources/evergreen/game_recs/digimon_world.json b/bot/resources/evergreen/game_recs/digimon_world.json index 86883e44..c5d93560 100644 --- a/bot/resources/evergreen/game_recs/digimon_world.json +++ b/bot/resources/evergreen/game_recs/digimon_world.json @@ -1,10 +1,7 @@ { "title": "Digimon World", - "recText": "A great mix of town-building and pet-raising set in the Digimon universe.", - "console": [ - "ps1" - ], + "recText": "A great mix of town-building and pet-raising set in the Digimon universe. With plenty of Digimon to raise and recruit to the village, this charming game will keep you occupied for a long time.", "image": "https://www.mobygames.com/images/covers/l/437308-digimon-world-playstation-front-cover.jpg", - "wikiLink": "https://digimon.fandom.com/wiki/Digimon_World", + "wikiLink": "https://rawg.io/games/digimon-world", "author": "352635617709916161" }
\ No newline at end of file diff --git a/bot/resources/evergreen/game_recs/doom_2.json b/bot/resources/evergreen/game_recs/doom_2.json index e69de29b..3d4ec8fa 100644 --- a/bot/resources/evergreen/game_recs/doom_2.json +++ b/bot/resources/evergreen/game_recs/doom_2.json @@ -0,0 +1,7 @@ +{ + "title": "Doom II", + "recText": "Doom 2 was one of the first FPS games that I truly enjoyed. It offered awesome weapons, terrifying demons to kill, and a great atmosphere to do it in.", + "image": "https://upload.wikimedia.org/wikipedia/en/thumb/2/29/Doom_II_-_Hell_on_Earth_Coverart.png/220px-Doom_II_-_Hell_on_Earth_Coverart.png", + "wikiLink": "https://rawg.io/games/doom-ii", + "author": "352635617709916161" +}
\ No newline at end of file diff --git a/bot/resources/evergreen/game_recs/skyrim.json b/bot/resources/evergreen/game_recs/skyrim.json index 7a6ef117..aaf8ebf9 100644 --- a/bot/resources/evergreen/game_recs/skyrim.json +++ b/bot/resources/evergreen/game_recs/skyrim.json @@ -1,15 +1,7 @@ { "title": "Elder Scrolls V: Skyrim", "recText": "The latest mainline Elder Scrolls game offered a fantastic role-playing experience with untethered freedom and a great story. Offering vast mod support, the game has endless customization and replay value.", - "console": [ - "xbox 360", - "ps3", - "pc", - "nintendo switch", - "xbox one", - "ps4" - ], "image": "https://upload.wikimedia.org/wikipedia/en/1/15/The_Elder_Scrolls_V_Skyrim_cover.png", - "wikiLink": "https://elderscrolls.fandom.com/wiki/Skyrim", + "wikiLink": "https://rawg.io/games/the-elder-scrolls-v-skyrim", "author": "352635617709916161" }
\ No newline at end of file diff --git a/bot/seasons/evergreen/recommend_game.py b/bot/seasons/evergreen/recommend_game.py index e4ad5392..45864336 100644 --- a/bot/seasons/evergreen/recommend_game.py +++ b/bot/seasons/evergreen/recommend_game.py @@ -27,22 +27,18 @@ class RecommendGame(commands.Cog): game = game_recs.pop() else: game = game_recs.pop() - - embed = discord.Embed( - title=game['title'], - url=game['wikiLink'], - color=discord.Colour.blue() - ) - author = self.bot.get_user(int(game['author'])) + + # Creating and formatting Embed + embed = discord.Embed(color=discord.Colour.blue()) embed.set_author(name=author.name, icon_url=author.avatar_url) embed.set_image(url=game['image']) - embed.add_field(name="Recommendation", value=game['recText']) + embed.add_field(name='Recommendation: ' + game['title'] + '\n' + game['wikiLink'], value=game['recText']) await ctx.send(embed=embed) def populate_recs(self): - """Populates the game_recs list from resources.""" + """Populates the list `game_recs` from resources.""" for file_url in os.listdir(DIR): with Path(DIR, file_url).open(encoding='utf-8') as file: data = json.load(file) |