Skip to main content

Library for creating amino bots and scripts.

Project description

GitHub release licence pypi docs

Sponsor project
Installation

Git

pip install git+https://github.com/xXxCLOTIxXx/amino.py.git

pypi

pip install amino.api.py

Library for working with aminoapps servers, below you will see code examples, for more examples see the documentation or the examples folder

Login example

import amino

client = amino.Client()
client.login(email='email', password='password')

Ping pong bot

import amino

client = amino.Client()
client.login(email='email', password='password')
print(f"LOGIN: OK.")


@client.event(amino.arguments.wsEvent.on_text_message)
def text_msg(data: amino.objects.Event):
    if data.comId is None or data.message.author.uid == client.userId: return
    print(f"New message: {data.message.content}")
    try:
        com_client = amino.CommunityClient(client.profile, data.comId)
        if data.message.content.lower().split(" ")[0] == "ping":
            com_client.send_message(data.message.threadId, "Pong!", replyTo=data.message.messageId)
        elif data.message.content.lower().split(" ")[0] == "pong":
            com_client.send_message(data.message.threadId, "Ping!", replyTo=data.message.messageId)
    except Exception as e:
        print(e)

=Read the documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

amino.py.api-0.4.tar.gz (28.1 kB view hashes)

Uploaded Source

Built Distribution

amino.py.api-0.4-py3-none-any.whl (33.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page