ChattyPy is a library made in Python for making Chatty bots.
Project description
Chatty.py
Chatty.py is a library made in Python for making Chatty bots.
Example
For a simple example, see example.py. An even simpler example is shown bellow:
import chatty
bot = chatty.Bot(name='example-bot', channel='hangout')
@bot.on_ready
def on_ready():
print('Bot ready!')
@bot.on_message
def on_message(msg):
print('User', msg.author, 'sent message:', msg)
@bot.on_command
def on_command(cmd):
print('User', cmd.author, 'sent slash command:', cmd)
if cmd.cmd == 'help':
bot.send_msg(f'Help requested by @{cmd.author.name}')
bot.run()
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
chattypy-0.1.3.tar.gz
(15.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
chattypy-0.1.3-py3-none-any.whl
(14.9 kB
view details)
File details
Details for the file chattypy-0.1.3.tar.gz.
File metadata
- Download URL: chattypy-0.1.3.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10e159f6d4d7d5e42344ec0b563694d784add2a17819592db9e947a53cc4cf60
|
|
| MD5 |
b6eaab1e6095df638212872fd9cb8846
|
|
| BLAKE2b-256 |
f9b9622425c675ea33625a5f0163d1185b95a3b075cc2dec5564eaa01b295022
|
File details
Details for the file chattypy-0.1.3-py3-none-any.whl.
File metadata
- Download URL: chattypy-0.1.3-py3-none-any.whl
- Upload date:
- Size: 14.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1e9019cc234a25d9f62fc77e7b2f2fe0ea1d83914ed97c77e09e33f48bfa4e8
|
|
| MD5 |
8b18871ec3de7efa675f51a6294ace8a
|
|
| BLAKE2b-256 |
7be8475b40947f1ad657636a133cf316b1e525d5f4cf4b13d9f5acf0b9cf91cc
|