Update 'pbbot.py'

This commit is contained in:
[Alien] 2020-02-08 18:33:27 +02:00
parent 4a3d98849f
commit 1888f25994
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class PBBot(sleekxmpp.ClientXMPP):
'send', '--text', arg]).decode('utf-8')
msg.reply(output).send()
elif "!bpaste" in msg['body']:
arg = msg['body'].replace('!paste', '').strip()
arg = msg['body'].replace('!bpaste', '').strip()
output = subprocess.check_output(['env', 'pbincli', \
'send', '-B', '--text', arg]).decode('utf-8')
msg.reply(output).send()