Skip to content

Commit

Permalink
using different embed
Browse files Browse the repository at this point in the history
  • Loading branch information
coillteoir committed May 9, 2024
1 parent 11ff63a commit fda9d94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ async def morning_message():
e_title = f"Good Morning, {bot.server_name}!"
e_description = "Have a great day!"


if weather_data is not None and news_data is not None:
e_description = f"**Todays weather:**\n \
{weather_data[2]}\n \
Expand All @@ -191,7 +190,9 @@ async def morning_message():
description=e_description,
color=0x00FF00,
)
embed.set_thumbnail(url=f"https:{weather_data[3]}")
embed.set_thumbnail(
url="https://t3.ftcdn.net/jpg/02/11/00/98/240_F_211009816_JQ1VpZEpkqsnWFnRPm4z064Q22rWjT9t.jpg"
)
embed.set_image(url=random.choice(bot.morning_gifs))
await channel.send(embed=embed)

Expand Down
1 change: 1 addition & 0 deletions leaderboard/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import os
import time


class Leaderboard:
class Member:
def __init__(self, uuid: int, mornings: int):
Expand Down

0 comments on commit fda9d94

Please sign in to comment.