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.6.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file mikoto_py-0.0.6.tar.gz
.
File metadata
- Download URL: mikoto_py-0.0.6.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.8.10 Linux/5.15.123.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23c12ec5ea461ac82ce0b30eb6539325679c4d7971550290347bf18a794526c4 |
|
MD5 | 829237605a74f6825ab2d2d969d3494d |
|
BLAKE2b-256 | 5fd5038b20c273863aa2c2b3c941eebe4dd239f74b684fc428cf791b8278b10e |
File details
Details for the file mikoto_py-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: mikoto_py-0.0.6-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.8.10 Linux/5.15.123.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae8436183f4148ff03a7655b04f0b33a9bb0d248a9da0c27a1216ff96ab70e9a |
|
MD5 | 3ff43d781841f89f3cd8158cc6580be0 |
|
BLAKE2b-256 | 59eebb6fe5d7af99581c405b4f5776e6d8cc771e7b6433efa69f593b39d57ed6 |