Skip to content

Commit

Permalink
YUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhruvacube committed Mar 2, 2021
1 parent a977c06 commit d0d3300
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions botmain/discordbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,15 @@ async def on_message(message):
embed = message.embeds[0].to_dict()

for guild in bot.guilds:
if not guild.id == 747480356625711204:
e = discord.Embed(title=embed['title'],description=embed['description'] , color= 0x2ecc71)
if guild.icon:
e.set_thumbnail(url=guild.icon_url)
if guild.banner:
e.set_image(url=guild.banner_url_as(format="png"))
await guild.system_channel.send(embed=e)
try:
if not guild.id == 747480356625711204:
e = discord.Embed(title=embed['title'],description=embed['description'] , color= 0x2ecc71)
if guild.icon:
e.set_thumbnail(url=guild.icon_url)
if guild.banner:
e.set_image(url=guild.banner_url_as(format="png"))
await guild.system_channel.send(embed=e)
except: print('Tried but failed!')
await bot.process_commands(message)


Expand Down

0 comments on commit d0d3300

Please sign in to comment.