motivation/commands.py
def pm(client, event, channel, nick, rest):
    'Arggh matey'
    if rest:
        rest = rest.strip()
        Karma.store.change(rest, 2)
        rcpt = rest
    else:
        rcpt = channel

    if random.random() > 0.95:
        return f"Arrggh ye be doin' great, grand work, {rcpt}!"
    return f"Arrggh ye be doin' good work, {rcpt}!"
def pm(client, event, channel, nick, rest):
    'Arggh matey'
    if rest:
        rest = rest.strip()
        Karma.store.change(rest, 2)
        rcpt = rest
    else:
        rcpt = channel

    if random.random() > 0.95:
        return f"Arrggh ye be doin' great, grand work, {rcpt}!"
    return f"Arrggh ye be doin' good work, {rcpt}!"
def pm ( client , event , channel , nick , rest ) : if rest : rest = rest . strip ( ) Karma . store . change ( rest , 2 ) rcpt = rest else : rcpt = channel if random . random ( ) > 0.95 : return f"Arrggh ye be doin' great, grand work, {rcpt}!" return f"Arrggh ye be doin' good work, {rcpt}!"
Arggh matey
Arggh matey