Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alert-aigul/amino.ed
Async lib for creating amino bots
https://github.com/alert-aigul/amino.ed
alert amino aminoapps aminobot aminoed api-client async ed narvii py python
Last synced: 27 days ago
JSON representation
Async lib for creating amino bots
- Host: GitHub
- URL: https://github.com/alert-aigul/amino.ed
- Owner: Alert-Aigul
- License: mit
- Created: 2022-08-13T17:02:27.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-08T17:41:30.000Z (over 1 year ago)
- Last Synced: 2024-10-12T09:41:45.026Z (27 days ago)
- Topics: alert, amino, aminoapps, aminobot, aminoed, api-client, async, ed, narvii, py, python
- Language: Python
- Homepage:
- Size: 223 KB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Installing
```
pip install amino.ed
```# Example
```py
import aminoed@aminoed.run_with_client()
async def main(client: aminoed.Client):
await client.login("email", "password")```
# Chat-bot example
```py
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")```