Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(38)  |  Call(37)  |  Derive(0)  |  Import(1)

src/n/y/nyasha-HEAD/nyasha/jabber_daemon/command_resolver.py   nyasha(Download)
# -*- coding: utf-8 -*-
from core import cmd_patterns, cmd
 
command_patterns = cmd_patterns('jabber_daemon.commands',
        cmd(r'^HELP$', 'help_command', doc='HELP - show this help'),
        cmd(r'^PING$', 'ping_command', doc='PING - pong'),
 
        cmd(r'^NICK$', 'nick_command', doc='NICK - show nick'),
        cmd(r'^NICK\s+(?P<new_nick>[\w]+)$', 'nick_command',