Super simple framework for Kakaotalk auto-reply bot based on aiohttp
Project description
Super simple framework for Kakaotalk auto-reply bot based on aiohttp
Example
From examples/simple_echo.py:
from kakaobot import KakaoBot
bot = KakaoBot()
@bot.on_message
async def handle_message(message, **args):
if args['type'] == 'text':
return 'Echoing: %s' % message
else:
return 'Cannot understand'
if __name__ == '__main__':
bot.run(host='0.0.0.0', port=8080)
Nice, isn’t it?
Why not Flask or Django?
Because setting up full Flask/Django development environment is a bit of pain, especially for this kind of tiny application with no front-end view. It is well-known using default development server for Flask/Django is not the way you run your web application. But in aiohttp, it is. That’s why I chose aiohttp.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python-kakaobot-0.0.2.tar.gz
(3.0 kB
view details)
Built Distribution
File details
Details for the file python-kakaobot-0.0.2.tar.gz
.
File metadata
- Download URL: python-kakaobot-0.0.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93c2e57b5c5ec71e6ff5fab97129afb12cf6381a3cc1486a9ac402378246017b |
|
MD5 | 59d921baa464018bc2ed19f0ecb20ce8 |
|
BLAKE2b-256 | a78154039e5f0741f7be229467f198f7f0222b15b0a41a889492a36a87482873 |
File details
Details for the file python_kakaobot-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: python_kakaobot-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33fd89f8f3eee3dca026223082d3b54935c24d138c9488af48214332dec8f92c |
|
MD5 | d757d58c46dfe60b9fcde806d1275b7f |
|
BLAKE2b-256 | a6ae286a0a6a45b77c597b098fa9f64726257a508bb75f70ed63c2f290b1faa1 |