'Setup the rss-channel mapping'

def func(self):

    if (not settings.RSS_ENABLED):
        string = 'RSS    is    not    enabled.    You    need    to    activate    it    in    game/settings.py.'
        self.msg(string)
        return
    try:
        import feedparser
        assert feedparser
    except ImportError:
        string = 'RSS    requires    python-feedparser    (https://pypi.python.org/pypi/feedparser).    Install    before    continuing.'
        self.msg(string)
        return
    if ('list' in self.switches):
        rssbots = [bot for bot in PlayerDB.objects.filter(db_is_bot=True, username__startswith='rssbot-')]
        if rssbots:
            from evennia.utils.evtable import EvTable
            table = EvTable('|wdbid|n', '|wupdate    rate|n', '|wev-channel', '|wRSS    feed    URL|n', border='cells', maxwidth=_DEFAULT_WIDTH)
            for rssbot in rssbots:
                table.add_row(rssbot.id, rssbot.db.rss_rate, rssbot.db.ev_channel, rssbot.db.rss_url)
            self.msg(table)
        else:
            self.msg('No    rss    bots    found.')
        return
    if (('disconnect' in self.switches) or ('remove' in self.switches) or ('delete' in self.switches)):
        botname = ('rssbot-%s' % self.lhs)
        matches = PlayerDB.objects.filter(db_is_bot=True, db_key=botname)
        if (not matches):
            matches = PlayerDB.objects.filter(db_is_bot=True, id=self.args.lstrip('#'))
        if matches:
            matches[0].delete()
            self.msg('RSS    connection    destroyed.')
        else:
            self.msg('RSS    connection/bot    could    not    be    removed,    does    it    exist?')
        return
    if ((not self.args) or (not self.rhs)):
        string = 'Usage:    @rss2chan[/switches]    <evennia_channel>    =    <rss    url>'
        self.msg(string)
        return
    channel = self.lhs
    url = self.rhs
    botname = ('rssbot-%s' % url)
    bot = PlayerDB.objects.filter(username__iexact=botname)
    if bot:
        bot = bot[0]
        if (not bot.is_bot):
            self.msg(("Player    '%s'    already    exists    and    is    not    a    bot." % botname))
            return
    else:
        bot = create.create_player(botname, None, None, typeclass=bots.RSSBot)
    bot.start(ev_channel=channel, rss_url=url, rss_rate=10)
    self.msg('RSS    reporter    created.    Fetching    RSS.')
