The Python framework for interacting with Mikoto
Project description
Mikoto.py
Warning: Mikoto.py is still in early development and is not ready for production use.
Mikoto.py is the official Python library for interacting with the Mikoto API.
Example
import mikoto
MIKOTO_TOKEN = '<bot token>'
bot = mikoto.MikotoClient()
@bot.messages.on_create
async def messaging(msg: mikoto.Message):
if msg.content == "!ping":
await bot.messages.send(msg.channelId, "pong!")
@bot.client.ready
async def ready():
# fires when the bot has fully connected to the API
print('Ready!')
bot.login(MIKOTO_TOKEN)
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
mikoto_py-0.0.5.tar.gz
(3.8 kB
view details)
Built Distribution
File details
Details for the file mikoto_py-0.0.5.tar.gz
.
File metadata
- Download URL: mikoto_py-0.0.5.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.8.10 Linux/5.15.90.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3df1093d5fcee3564e6d5a33dd19a760c7f4506b98bfb3b2f7f93906de8b56f5 |
|
MD5 | 5d9ac20beafcce387fb7da1564c7ef6e |
|
BLAKE2b-256 | 1c8b8dfcaf52bdc5cf060ec42a84e43d45fe65f59aeab2f493c58363f1c955e6 |
File details
Details for the file mikoto_py-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: mikoto_py-0.0.5-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.8.10 Linux/5.15.90.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72c620e22bcc6a01c284401937f0f66fe1b53b1d8d57003bfde8fbeeda9cdd41 |
|
MD5 | f751ed0f79db40a9966b4dfd7dca4058 |
|
BLAKE2b-256 | 5a28b13738a61c465896b7dd9d7c20e27b3f973363b1575fc1683e96484f4694 |