Set ALERT_MESSAGE to target channels
This commit is contained in:
parent
177eb0c56c
commit
fe7221481c
7
bot.py
7
bot.py
@ -68,8 +68,11 @@ class MyBot(commands.Bot):
|
|||||||
|
|
||||||
for guild in self.guilds:
|
for guild in self.guilds:
|
||||||
# find the channel named "commands"
|
# find the channel named "commands"
|
||||||
owner = guild.owner
|
if discord.utils.get(guild.text_channels, name="general"):
|
||||||
await owner.send("Hello Again!\n\nThis is an official message from the developer of Blob. We are continuing development of Blob and it will resume normal operations shortly.\n\nA lot has changed since the last time Blob was online. We are here to address your issues with our new discord server. Please join [now](https://discord.gg/A2EQDvA6sN).\n\nI (Tropii) hate to send messages to server owners like you with stuff like this, I do apologize. For further information please join the support server below!\n\nTake care - Tropii.\n\nHave any conerns? Feel free to add me `fstropii`\n\nIf you see this message more than once please let me know ASAP!")
|
channel = discord.utils.get(guild.text_channels, name="general")
|
||||||
|
await channel.send("Hello Again!\n\nThis is an official message from the developer of Blob. We are continuing development of Blob and it will resume normal operations shortly.\n\nA lot has changed since the last time Blob was online. We are here to address your issues with our new discord server. Please join [now](https://discord.gg/A2EQDvA6sN).\n\nI (Tropii) hate to send messages to through servers with stuff like this, I do apologize. For further information please join the support server below!\n\nTake care - Tropii.\n\nHave any conerns? Feel free to add me `fstropii`\n\nIf you see this message more than once please let me know ASAP!")
|
||||||
|
else:
|
||||||
|
pass
|
||||||
|
|
||||||
# making var for commands in this file
|
# making var for commands in this file
|
||||||
bot = MyBot()
|
bot = MyBot()
|
||||||
|
Loading…
Reference in New Issue
Block a user