コード例 #1
0
ファイル: addperm.py プロジェクト: Red-M/frogbot
def listvoiced(bot, input):
    outos=[]
    for nicks in input.conn.conf["voiced"]:
        if nicks=="":
            empty = removeperm(nicks, bot, "voice")
            print("found empty entries in voiced. removed them.")
        if not nicks=="":
            outos.append(munge.muninput(input, bot, nicks))
    outoss=', '.join(outos)
    return("The voiced users of this bot are: \x02%s" % (outoss))
コード例 #2
0
ファイル: addperm.py プロジェクト: Red-M/frogbot
def listsuperadmins(bot, input):
    outos=[]
    for nicks in input.conn.conf["superadmins"]:
        if nicks=="":
            empty = removeperm(nicks, bot, "superadmin")
            print("found empty entries in superadmins. removed them.")
        if not nicks=="":
            outos.append(munge.muninput(input, bot, nicks))
    outoss=', '.join(outos)
    return("The Super Admins of this bot are: \x02%s" % (outoss))
コード例 #3
0
ファイル: addperm.py プロジェクト: Red-M/frogbot
def listowner(bot, input):
    outos=munge.muninput(input, bot, input.conn.conf["owner"])
    return("The Owner of this bot is: \x02%s" % (outos))