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 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.1.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for python_kakaobot-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b939273158aeb08e8f59cebb764463d1c7222f46bf919618ff5d05df65bc7f0 |
|
MD5 | 85f1e59a4cddbbc896e5f4a3fc92f9a3 |
|
BLAKE2b-256 | f0b4ec4cc9129f714a4602c625b7e687dab74c9f137c6115535fe37f68075756 |