Combine RxPy with discord.py.
Project description
discord-ext-rx
Work In Progress!
Combine RxPy with discord.py.
Example
from discord.ext.rx import RxBot, _
from rx import operators as ops
bot = RxBot()
bot.messages.pipe(
ops.filter(lambda m: m.author.id == 121678432504512512),
ops.filter(lambda m: m.content == '418'),
ops.map(lambda m: m.channel)
).subscribe(
_(lambda c: c.send("I'm a teapot!"))
)
bot.run('token')
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
discord-ext-rx-0.1.0.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for discord_ext_rx-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce80b91dd185e58e7e557bbb95483c6bafab49cd3961f7ac26ff3432a4f27a5d |
|
MD5 | aa4a1325615bdfae7f75fba259fad86f |
|
BLAKE2b-256 | 2007164109eff0cfe36cb312e1602aaf6a31b4f62f7ddc549e9a256490ccd9d5 |