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("", "")
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.2.2.tar.gz
(35.2 kB
view details)
File details
Details for the file Amino.ed-2.8.2.2.tar.gz
.
File metadata
- Download URL: Amino.ed-2.8.2.2.tar.gz
- Upload date:
- Size: 35.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51c6224afbc83fc4c2fdc06a3a8e8d628cae26d04fbdbf98cdc4eecb21a7e257 |
|
MD5 | 9b2b4da5df1b77e477337adf95840354 |
|
BLAKE2b-256 | bd0b1a54465725a985cf0816d20f29de1fb75aaa40cbc671a4537f70b1c7350f |