between
How to be loved? this is the answer for your question.
How to use
Date with somebody
Install Between
Write a fun bot
Be loved by your lover
Installation
Simple.
$ pip install between
Example
Simple commands:
import between
client = between.Client("YOUR_ID", "YOUR_PASSWORD")
client.send("Carpe diem!")
client.send_sticker()
client.send_sticker("85_12")
client.send_image("./test.jpg")
print client.get_recent_messages()
import between
def on_message(ws, message):
print message
def on_open(ws):
ws.send("Hello World!")
bot = between.Bot("YOUR_ID", "YOUR_PASSWORD", on_open=on_open, on_message=on_message)
bot.run_forever()
import between
client = between.Client("YOUR_ID", "YOUR_PASSWORD")
me = client.me.account_id
lover = client.lover.account_id
def on_message(ws, message):
print message
if message.has_key('p'):
if message['p'] == 'events':
for event in message['m']['events']:
if event['action'] == 'EA_ADD':
msg = event['messageEvent']['message']
if msg['from'] != me:
if msg.has_key('attachments'):
attachment = msg['attachments'][0]
if attachment.has_key('reference'):
# echo image
ws.send_image(image_id=attachment['reference'])
elif attachment.has_key('sticker'):
# echo sticker
ws.send_sticker(attachment['sticker']['sticker_id'])
elif msg.has_key('content'):
# echo message
ws.send(msg['content'])
bot = between.Bot(client=client, on_message=on_message)
bot.run_forever()
Features
Login and authentication
Send a message
Send a sticker
Send an image
Get recent messages
Message long polling
Get uploaded image lists (in progress)
Screenshot
Metadata
Release files for between 0.2.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| between-0.2.7.tar.gz | 20.7 kB | Without provenance | Details for between-0.2.7.tar.gz |
Release files / between-0.2.7.tar.gz
| Download URL | between-0.2.7.tar.gz |
|---|---|
| Size | 20.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f854da752db792c575fb23f93a4374987a6d3a47e2e515067f3076dc5e99c7f8
|
|
BLAKE2b-256 checksum How to use checksums |
5b48ccc3c44f45c27e3b9c65235e9bb2e2784f15fa3a3c477752534b2f93e4fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for between 0.2.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.