@@ -0,0 +1,788 @@
+# -*- coding: utf-8 -*-%0A%22%22%22%0A================================================%0A:mod:%60onebot.plugins.psa%60 PSA%0A================================================%0A%0AThis plugin allows admins to send broadcasts%0A%22%22%22%0A%0Afrom irc3 import plugin%0Afrom irc3.plugins.command import command%0A%0A%0A@plugin%0Aclass PSAPlugin(object):%0A    %22%22%22PSA Plugin%22%22%22%0A%0A    requires = %5B%0A        'irc3.plugins.command',%0A        'irc3.plugins.userlist',%0A    %5D%0A%0A    def __init__(self, bot):%0A        self.bot = bot%0A%0A    @command(permission='admin', show_in_help_list=False)%0A    def psa(self, mask, target, args):%0A        %22%22%22Broadcast a public service announcement to all channels%0A%0A            %25%25psa %3Cmessage%3E...%0A        %22%22%22%0A        for channel in self.bot.channels:%0A            self.bot.privmsg(channel, ' '.join(args%5B'%3Cmessage%3E'%5D))%0A

Create PSA plugin, only accessible for admins