Updated ALERT_MESSAGE
This commit is contained in:
parent
7337345f53
commit
1b110c3f41
11
bot.py
11
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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user