litwisha / aioslacker

slacker wrapper for asyncio

Home Page:https://pypi.python.org/pypi/aioslacker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

aioslacker

info

slacker wrapper for asyncio

image

image

Installation

pip install aioslacker

Usage

import asyncio

from aioslacker import Slacker

TOKEN = 'xxxxx'

async def go():
    async with Slacker(TOKEN) as slack:
        await slack.chat.post_message('#general', 'Hello fellow slackers!')

loop = asyncio.get_event_loop()
loop.run_until_complete(go())
loop.close()

About

slacker wrapper for asyncio

https://pypi.python.org/pypi/aioslacker

License:MIT License


Languages

Language:Python 100.0%