butterfield icon indicating copy to clipboard operation
butterfield copied to clipboard

A Python Slack bot framework using asyncio and Slack's Real Time Messaging API

Results 10 butterfield issues
Sort by recently updated
recently updated
newest added

Bumps [websockets](https://github.com/aaugustin/websockets) from 2.3 to 9.1. Changelog Sourced from websockets's changelog. 9.1 ... May 27, 2021 .. note:: **Version 9.1 fixes a security issue introduced in version 8.0.** Version 8.0...

dependencies

Use slacker-asyncio to replace slacker. Thus slack web api can be called asynchronously.

One option being [this one](https://pypi.python.org/pypi/slacker-asyncio) and the source is [here](https://github.com/gfreezy/slacker-asyncio/).

By using `aiohttp` instead of `slacker` (which uses synchronous `requests`), we can continue with the rest of our application if slack refuses to return a timely response.

I wrote an example handler for !ping example.com. The only way I could get it to actually return the output back to slack while still running was to add asyncio.sleep()....

The example from the docs would print an error about 'text' not existing in a message from an incoming webhook. import asyncio from butterfield import Bot @asyncio.coroutine def echo(bot, message:...

Nothing happens with the following code snippet: ``` python from butterfield import Bot bot = Bot('not-a-real-key') bot.post("some-channel-id", 'Hi, channel!') ``` And if I try to "run" the bot first, it...

so you don't have to `@bot` in a PM

because it's really easy and would make deployment just so easy