chattypy-0.1.3
توضیحات
ChattyPy is a library made in Python for making Chatty bots.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | chattypy-0.1.3 |
| نام | chattypy |
| نسخه کتابخانه | 0.1.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | LuisAFK |
| ایمیل نویسنده | so.yl.a.fk@googlemail.com |
| آدرس صفحه اصلی | https://github.com/lafkpages/ChattyPy |
| آدرس اینترنتی | https://pypi.org/project/chattypy/ |
| مجوز | - |
# Chatty.py
Chatty.py is a library made in Python for making Chatty bots.
# Example
For a simple example, see [example.py](src/chatty.py/example.py).
An even simpler example is shown bellow:
```python
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()
```
نیازمندی
| مقدار | نام |
|---|---|
| - | websocket-client |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl chattypy-0.1.3:
pip install chattypy-0.1.3.whl
نصب پکیج tar.gz chattypy-0.1.3:
pip install chattypy-0.1.3.tar.gz