diff --git a/pbbot.py b/pbbot.py index e517b15..1e206ad 100755 --- a/pbbot.py +++ b/pbbot.py @@ -36,6 +36,11 @@ class PBBot(sleekxmpp.ClientXMPP): output = subprocess.check_output(['/bin/env', 'pbincli', \ 'send', '--text', arg]).decode('utf-8') msg.reply(output).send() + elif "!bpaste" in msg['body']: + arg = msg['body'].replace('!paste', '').strip() + output = subprocess.check_output(['/bin/env', 'pbincli', \ + 'send', '-B', '--text', arg]).decode('utf-8') + msg.reply(output).send() elif "!get" in msg['body']: arg = msg['body'].replace('!get', '').strip() output = subprocess.check_output(['/bin/env', 'pbincli' \