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")
Metadata
Release files for Amino.ed 2.8.4.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Amino.ed-2.8.4.13.tar.gz | 36.3 kB | Details |
Release files / Amino.ed-2.8.4.13.tar.gz
| Download URL | Amino.ed-2.8.4.13.tar.gz |
|---|---|
| Size | 36.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b9a24dae7edfa3155d44965a103aaa15aeb3caec2281a2c8f0589975d84bfb7
|
|
BLAKE2b-256 checksum How to use checksums |
dfebcb6bda0aa054ad26329fb462ad20b13224c7c83d09e5b2cd91604ae4ee08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|