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.7.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file mikoto_py-0.0.7.tar.gz
.
File metadata
- Download URL: mikoto_py-0.0.7.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 | d87d62161fde20de4b7172351d0db3ae2f786b866a5e48ac0ab12e2a1afe9b4f |
|
MD5 | 2411500b56555ab773bd5f3cf37541b0 |
|
BLAKE2b-256 | 1bd1ef72f8479a9779907edea81deeffd9c49c1bf8a4342e880e1de0983fc247 |
File details
Details for the file mikoto_py-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: mikoto_py-0.0.7-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 | f1dea24f2aecb91443cd5eb6b844bc070e7889f47b6922e3de6a409bbfe48aa1 |
|
MD5 | 4528eb174fd366b7ca47d7d7ad625805 |
|
BLAKE2b-256 | f0b54455a08f97d74fc64c66cc337a56fe04a591181b05d06376062d50ef82df |