chattypy


Namechattypy JSON
Version 0.1.3 PyPI version JSON
download
home_pagehttps://github.com/lafkpages/ChattyPy
SummaryChattyPy is a library made in Python for making Chatty bots.
upload_time2023-01-23 17:27:55
maintainer
docs_urlNone
authorLuisAFK
requires_python>=3.6
license
keywords chatty bot api python chattypy
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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()
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/lafkpages/ChattyPy",
    "name": "chattypy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "chatty,bot,api,python,chattypy",
    "author": "LuisAFK",
    "author_email": "so.yl.a.fk@googlemail.com",
    "download_url": "https://files.pythonhosted.org/packages/f9/b9/622425c675ea33625a5f0163d1185b95a3b075cc2dec5564eaa01b295022/chattypy-0.1.3.tar.gz",
    "platform": null,
    "description": "# Chatty.py\n\nChatty.py is a library made in Python for making Chatty bots.\n\n# Example\nFor a simple example, see [example.py](src/chatty.py/example.py).\nAn even simpler example is shown bellow:\n\n```python\nimport chatty\n\nbot = chatty.Bot(name='example-bot', channel='hangout')\n\n@bot.on_ready\ndef on_ready():\n  print('Bot ready!')\n\n@bot.on_message\ndef on_message(msg):\n  print('User', msg.author, 'sent message:', msg)\n\n@bot.on_command\ndef on_command(cmd):\n  print('User', cmd.author, 'sent slash command:', cmd)\n\n  if cmd.cmd == 'help':\n    bot.send_msg(f'Help requested by @{cmd.author.name}')\n\nbot.run()\n```\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "ChattyPy is a library made in Python for making Chatty bots.",
    "version": "0.1.3",
    "split_keywords": [
        "chatty",
        "bot",
        "api",
        "python",
        "chattypy"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7be8475b40947f1ad657636a133cf316b1e525d5f4cf4b13d9f5acf0b9cf91cc",
                "md5": "8b18871ec3de7efa675f51a6294ace8a",
                "sha256": "c1e9019cc234a25d9f62fc77e7b2f2fe0ea1d83914ed97c77e09e33f48bfa4e8"
            },
            "downloads": -1,
            "filename": "chattypy-0.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8b18871ec3de7efa675f51a6294ace8a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 14944,
            "upload_time": "2023-01-23T17:27:54",
            "upload_time_iso_8601": "2023-01-23T17:27:54.033898Z",
            "url": "https://files.pythonhosted.org/packages/7b/e8/475b40947f1ad657636a133cf316b1e525d5f4cf4b13d9f5acf0b9cf91cc/chattypy-0.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f9b9622425c675ea33625a5f0163d1185b95a3b075cc2dec5564eaa01b295022",
                "md5": "b6eaab1e6095df638212872fd9cb8846",
                "sha256": "10e159f6d4d7d5e42344ec0b563694d784add2a17819592db9e947a53cc4cf60"
            },
            "downloads": -1,
            "filename": "chattypy-0.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "b6eaab1e6095df638212872fd9cb8846",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 15181,
            "upload_time": "2023-01-23T17:27:55",
            "upload_time_iso_8601": "2023-01-23T17:27:55.701967Z",
            "url": "https://files.pythonhosted.org/packages/f9/b9/622425c675ea33625a5f0163d1185b95a3b075cc2dec5564eaa01b295022/chattypy-0.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-23 17:27:55",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "lafkpages",
    "github_project": "ChattyPy",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "chattypy"
}
        
Elapsed time: 0.02985s