From 1b110c3f41fea7c019e2e839342b5a427784065b Mon Sep 17 00:00:00 2001 From: tropii <97747461+TropiiDev@users.noreply.github.com> Date: Fri, 24 Nov 2023 16:59:42 -0500 Subject: [PATCH] Updated ALERT_MESSAGE --- bot.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bot.py b/bot.py index 097408d..535ca44 100644 --- a/bot.py +++ b/bot.py @@ -66,6 +66,17 @@ class MyBot(commands.Bot): async def on_ready(self): await self.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name=f"over {len(self.guilds)} servers!")) + for guild in self.guilds: + try: + channel = discord.utils.get(guild.text_channels, name="general") + + if channel: + em = discord.Embed(title="Official Message", description=f"**An official message from Tropii (Owner and Developer of Blob).**\n\nWe are restarting Blob and bringing him back to life! We are also open to adding new features and other things.\n\nPlease join the new support server for more information!\n\n**[Join the Support Server](https://discord.gg/kuYNHR6Rrx)**", color=discord.Color.green()) + + await channel.send(embed=em) + except: + pass + # making var for commands in this file bot = MyBot()