change fallback image

pull/1/head
qwewqa 4 years ago
parent 9893e78034
commit 20e1339976
  1. 2
      miyu_bot/commands/cogs/event.py
  2. 4
      miyu_bot/commands/cogs/music.py

@ -45,7 +45,7 @@ class Event(commands.Cog):
logo = discord.File(event.logo_path, filename='logo.png')
except FileNotFoundError:
# Just a fallback
logo = discord.File(masters.events.get('1', ctx).logo_path, filename='logo.png')
logo = discord.File(asset_manager.path / 'ondemand/stamp/stamp_10006.png', filename='logo.png')
embed = discord.Embed(title=event.name)
embed.set_thumbnail(url=f'attachment://logo.png')

@ -60,8 +60,8 @@ class Music(commands.Cog):
try:
thumb = discord.File(song.jacket_path, filename='jacket.png')
except FileNotFoundError:
# dig delight is just a fallback
thumb = discord.File(masters.music.get('110001', ctx).jacket_path, filename='jacket.png')
# Just a fallback
thumb = discord.File(asset_manager.path / 'ondemand/stamp/stamp_10006.png', filename='jacket.png')
embed = discord.Embed(title=song.name)
embed.set_thumbnail(url=f'attachment://jacket.png')

Loading…
Cancel
Save