Async library for creating Bots for amino
Project description
This project is in no way associated with Amino or MediaLabs, this is completely reverse engineered
AminoAcid
Why AminoAcid?
Because other projects like BotAmino fail to allow a nicely done, pythonic, completely async hinted experience.
This project aims to open up the possibilities that other libraries don't fulfill by being completely async using aiohttp, allowing OOP with the use of BaseModels and dataclasses, allowing events with a discord.py-esque experience.
While BotAmino tries to be easy to use it fails to provide an easy high-level API by forcing to use Amino.fix instead of allowing access via their own methods and objects.
How do you use it?
AminoAcid's documentation is available through GitHub pages and auto generated using pdoc, for examples take a look into the examples dir
from aminoacid import Bot
from aminoacid.abc import Message, Context
client = Bot(
prefix="b!",
key=bytes.fromhex("B0000000B50000000000000000000B000000000B"),
device = "42..."
)
@client.command(name="say")
async def hi(ctx: Context, *nya: str):
message = await ctx.send(" ".join(nya))
print(message)
@client.event("on_message")
async def on_message(message: Message):
if message.author.id == client.profile.id: return
print(message, "nya!")
client.run(
session="AnsiMSI6..."
)
# OR
#client.run(
# email="mail@gmail.com",
# password= r"Rc2Z=I5S0bN;ewjn2jasdn43",
#)
As you might see, you need to supply your own key to sign the requests with. You can find this in other libraries tho.
Please note, that this library is NOT finished and a lot of features I want to implement are still missing.
Why no key?
The aim of this library is NOT to make malicious bots, which is why you need to put the key in yourself.
This library should only be used for making fun chat bots.
How to do X?
Check the docs, if it's in there then look at how to use it. If it's not there you probably can't.
If you want to request a feature, you can open a new Issue.
AminoAcid or AminoAcids?
This was originally called AminoAcids but then i noticed that the pypi project "aminoacids" was already taken, so i removed the s
To-Do
- Finish Object attributes
- Type checking and converting
- Add Embed features
- Improve existing features
- Better quality in code
- Complete Exceptions
- Complete SocketCode Enum
- Make the SocketClient subscribe to other events to allow on_follow and on_notification events
- Finish started but unfinished methods
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
Built Distribution
File details
Details for the file aminoacid-0.1.1.tar.gz
.
File metadata
- Download URL: aminoacid-0.1.1.tar.gz
- Upload date:
- Size: 14.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9eb920b0bc7cca6b0de383a1a2f712ba564e68b363820af2a325ac563d3eea0 |
|
MD5 | 506079caff70323facac7e1c81fa00a4 |
|
BLAKE2b-256 | ceeb65b4a05cb04aa2af1c144286c8bfc5e961825f6a38a62cfdc954c94d6098 |
File details
Details for the file aminoacid-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: aminoacid-0.1.1-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c22d40e15162d47a3258cd8666e820612acba09a9065388d85add588f1cd261c |
|
MD5 | 2295e8c0b4d31f9073ba7b37a97c5147 |
|
BLAKE2b-256 | 4be7f79a033e49c7f29c1dc6ccb0eb79f719f8431340410a4de8d78df377aea5 |