@@ -0,0 +1,933 @@
+import asyncio%0Aimport os%0A%0Aimport discord%0Afrom   discord.ext import commands%0A%0Aimport SLA_bot.channelupdater as ChannelUpdater%0Aimport SLA_bot.config as cf%0A%0Acurr_dir = os.path.dirname(__file__)%0Adefault_config = os.path.join(curr_dir, 'default_config.ini'),%0Auser_config = os.path.join(curr_dir, 'config.ini')%0Acf.load_configs(default_config, user_config)  %0A%0Aprefix = cf.get('General', 'command_prefix')%0Abot = commands.Bot(command_prefix=prefix)%0A%0Aasync def set_offline():%0A    ChannelUpdater.bot = bot%0A    await ChannelUpdater.load_channels() %0A    embed=discord.Embed(title='Bot is offline.', color=0xdc4a4a)%0A    for channel, messages in ChannelUpdater.channel_messages.items():%0A        await ChannelUpdater.write_content(channel, None, embed)%0A%0A@bot.event%0Aasync def on_ready():%0A    print('Logged in as: %7B%7D'.format(bot.user.name))%0A    print('------')%0A    await set_offline()%0A    await bot.logout()%0A%0Abot.run(cf.get('General', 'bot_token'))%0A%0A%0A

Add script to set an offline message on channels