Skip to main content

A library to create Amino bots.

Project description

Installing

pip install amino.ed

Example

import aminoed

@aminoed.run_with_client()
async def main(client: aminoed.Client):
    await client.login("email", "password")

Chat-bot example

from aminoed import *

bot = Client(prefix="!")

@bot.execute() # Runs in the background, after bot.start()
async def on_start():
    print(f"Bot {bot.auth.user.nickname} working.")
    
@bot.command() # Comand name - function name
async def help(event: Event):
    await event.send_message("[c]Comands\n" \
        "?chatmembers - members count.")

@bot.command("chatmembers", "?") # Custom command and prefix
async def chatmembers(event: Event):
    chat = await event.client.get_chat_thread(event.threadId)
    await event.send_message(f"Chat members count: {chat.membersCount}.")
    
bot.start("email", "password")

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

Amino.ed-2.8.4.11.tar.gz (36.3 kB view details)

Uploaded Source

File details

Details for the file Amino.ed-2.8.4.11.tar.gz.

File metadata

  • Download URL: Amino.ed-2.8.4.11.tar.gz
  • Upload date:
  • Size: 36.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for Amino.ed-2.8.4.11.tar.gz
Algorithm Hash digest
SHA256 779d7a08ddee615f367260e5ba4eb9355c409d840affc9fd52c6df2b7c2f3b53
MD5 a39ab6cd0be3ec3e288e44fd1e63ff8a
BLAKE2b-256 fcc92e2045b73adbfa56cd02cbf5d4e48a1a63f6682a9a9f9605e0ae3f115793

See more details on using hashes here.

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