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

All Samples(6)  |  Call(0)  |  Derive(0)  |  Import(6)

src/w/i/willie-4.3.0/willie/modules/adminchannel.py   willie(Download)
 
import re
from willie.module import commands, priority, OP
from willie.tools import Nick
 
    willie will op the nick who sent the command
    """
    if bot.privileges[trigger.sender][trigger.nick] >= OP:
        nick = trigger.group(2)
        channel = trigger.sender
    willie will deop the nick who sent the command
    """
    if bot.privileges[trigger.sender][trigger.nick] >= OP:
        nick = trigger.group(2)
        channel = trigger.sender
    willie will voice the nick who sent the command
    """
    if bot.privileges[trigger.sender][trigger.nick] >= OP:
        nick = trigger.group(2)
        channel = trigger.sender
    willie will devoice the nick who sent the command
    """
    if bot.privileges[trigger.sender][trigger.nick] >= OP:
        nick = trigger.group(2)
        channel = trigger.sender

src/w/i/willie-HEAD/willie/modules/adminchannel.py   willie(Download)
 
import re
from willie.module import commands, priority, OP
from willie.tools import Nick
 
    willie will op the nick who sent the command
    """
    if bot.privileges[trigger.sender][trigger.nick] >= OP:
        nick = trigger.group(2)
        channel = trigger.sender
    willie will deop the nick who sent the command
    """
    if bot.privileges[trigger.sender][trigger.nick] >= OP:
        nick = trigger.group(2)
        channel = trigger.sender
    willie will voice the nick who sent the command
    """
    if bot.privileges[trigger.sender][trigger.nick] >= OP:
        nick = trigger.group(2)
        channel = trigger.sender
    willie will devoice the nick who sent the command
    """
    if bot.privileges[trigger.sender][trigger.nick] >= OP:
        nick = trigger.group(2)
        channel = trigger.sender

src/w/i/willie-4.3.0/willie/coretasks.py   willie(Download)
    mapping = {'+': willie.module.VOICE,
               '%': willie.module.HALFOP,
               '@': willie.module.OP,
               '&': willie.module.ADMIN,
               '~': willie.module.OWNER}
    mapping = {'v': willie.module.VOICE,
               'h': willie.module.HALFOP,
               'o': willie.module.OP,
               'a': willie.module.ADMIN,
               'q': willie.module.OWNER}

src/w/i/willie-HEAD/willie/coretasks.py   willie(Download)
    mapping = {'+': willie.module.VOICE,
               '%': willie.module.HALFOP,
               '@': willie.module.OP,
               '&': willie.module.ADMIN,
               '~': willie.module.OWNER}
    mapping = {'v': willie.module.VOICE,
               'h': willie.module.HALFOP,
               'o': willie.module.OP,
               'a': willie.module.ADMIN,
               'q': willie.module.OWNER}

src/w/i/willie-4.3.0/willie/modules/clock.py   willie(Download)
 
import datetime
from willie.module import commands, example, OP
from willie.tools import get_timezone, format_time
 
def update_channel(bot, trigger):
    """
    Set the preferred time zone for the channel.
    """
    if bot.privileges[trigger.sender][trigger.nick] < OP:
    can use http://strftime.net or your favorite search engine to learn more.
    """
    if bot.privileges[trigger.sender][trigger.nick] < OP:
        return
    elif not bot.db:

src/w/i/willie-HEAD/willie/modules/clock.py   willie(Download)
 
import datetime
from willie.module import commands, example, OP
from willie.tools import get_timezone, format_time
 
def update_channel(bot, trigger):
    """
    Set the preferred time zone for the channel.
    """
    if bot.privileges[trigger.sender][trigger.nick] < OP:
    can use http://strftime.net or your favorite search engine to learn more.
    """
    if bot.privileges[trigger.sender][trigger.nick] < OP:
        return
    elif not bot.db:

src/w/i/willie-4.3.0/willie/modules/radio.py   willie(Download)
from xml.dom.minidom import parseString
import willie.web as web
from willie.module import commands, OP
 
 
        return
    if args[0] == 'on':
        if bot.privileges[trigger.sender][trigger.nick] < OP:
            return
        if checkSongs != 0:
            sleep(5)
    elif args[0] == 'off':
        if bot.privileges[trigger.sender][trigger.nick] < OP:
            return
        if checkSongs == 0:

src/w/i/willie-HEAD/willie/modules/radio.py   willie(Download)
from xml.dom.minidom import parseString
import willie.web as web
from willie.module import commands, OP
 
 
        return
    if args[0] == 'on':
        if bot.privileges[trigger.sender][trigger.nick] < OP:
            return
        if checkSongs != 0:
            sleep(5)
    elif args[0] == 'off':
        if bot.privileges[trigger.sender][trigger.nick] < OP:
            return
        if checkSongs == 0: