Liacord


NameLiacord JSON
Version 0.1.9 PyPI version JSON
download
home_pagehttps://github.com/masezev/Liacord.py
SummaryA Python wrapper for the Discord API
upload_time2024-04-08 15:19:28
maintainerNone
docs_urlNone
authorMasezev
requires_python>=3.8.0
licenseMIT
keywords a python wrapper for the discord api
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Liacord
==========

<p align="center">
    <a href="https://discord.gg/H7FQFGEPz5"><img src="https://img.shields.io/discord/930415100718878750?style=flat-square&color=5865f2&logo=discord&logoColor=ffffff&label=discord" alt="Discord server invite" /></a>
    <a href="https://pypi.org/project/Liacord"><img src="https://img.shields.io/pypi/v/Liacord.svg?style=flat-square" alt="PyPI version info" /></a>
    <a href="https://pypi.org/project/Liacord/"><img src="https://img.shields.io/pypi/pyversions/Liacord.svg?style=flat-square" alt="PyPI supported Python versions" /></a>
    <a href="https://github.com/masezev/Liacord.py/commits"><img src="https://img.shields.io/github/commit-activity/w/masezev/Liacord.py.svg?style=flat-square" alt="Commit activity" /></a>
</p>

Key Features
-------------

- Modern Pythonic API using ``async`` and ``await``.
- Proper rate limit handling.
- Optimised in both speed and memory.

**Python 3.8 or higher is required**

Installing
~~~~~~~~~~~~~ py

# Linux/macOS
python3 -m pip install -U Liacord

# Windows
py -3 -m pip install -U Liacord
    
~~~~~~~~~~~~~ 

Bot Example
~~~~~~~~~~~~~ py

import asyncio
from Liacord import Client, Intents

intents = Intents().all()
client = Client("your_token_here", prefix="#", intents=intents)

@client.command(name="name")
async def hello(ctx):
 await ctx.send(f"{ctx.author.name}")

@client.command(name="ping")
async def ping(ctx):
 await ctx.send(f"pong {round(client.latency)}ms.")

@client.command(name='server_id', brief='get the server id')
async def server_id_command(ctx):
 server_id = ctx.guild.id
 await ctx.send(f"server id: {server_id}")

loop = asyncio.get_event_loop()
loop.run_until_complete(client.run())
~~~~~~~~~~~~~
You can find more examples in the examples directory [There](https://github.com/MaseZev/Liacord.py/tree/main/examples).


Links


<br>
<p align="center">
    <a href="https://discord.gg/H7FQFGEPz5">Discord Server</a>
    вЃ•
    <a href="https://discord.gg/discord-developers">Discord Developers</a>
</p>
<br>


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/masezev/Liacord.py",
    "name": "Liacord",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8.0",
    "maintainer_email": null,
    "keywords": "A Python wrapper for the Discord API",
    "author": "Masezev",
    "author_email": "csgomanagement1@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/28/c5/887f9d1551bc05dfdd9869dee5c166577073902a42abfd4db744e14169b1/Liacord-0.1.9.tar.gz",
    "platform": null,
    "description": "Liacord\r\n==========\r\n\r\n<p align=\"center\">\r\n    <a href=\"https://discord.gg/H7FQFGEPz5\"><img src=\"https://img.shields.io/discord/930415100718878750?style=flat-square&color=5865f2&logo=discord&logoColor=ffffff&label=discord\" alt=\"Discord server invite\" /></a>\r\n    <a href=\"https://pypi.org/project/Liacord\"><img src=\"https://img.shields.io/pypi/v/Liacord.svg?style=flat-square\" alt=\"PyPI version info\" /></a>\r\n    <a href=\"https://pypi.org/project/Liacord/\"><img src=\"https://img.shields.io/pypi/pyversions/Liacord.svg?style=flat-square\" alt=\"PyPI supported Python versions\" /></a>\r\n    <a href=\"https://github.com/masezev/Liacord.py/commits\"><img src=\"https://img.shields.io/github/commit-activity/w/masezev/Liacord.py.svg?style=flat-square\" alt=\"Commit activity\" /></a>\r\n</p>\r\n\r\nKey Features\r\n-------------\r\n\r\n- Modern Pythonic API using ``async`` and ``await``.\r\n- Proper rate limit handling.\r\n- Optimised in both speed and memory.\r\n\r\n**Python 3.8 or higher is required**\r\n\r\nInstalling\r\n~~~~~~~~~~~~~ py\r\n\r\n# Linux/macOS\r\npython3 -m pip install -U Liacord\r\n\r\n# Windows\r\npy -3 -m pip install -U Liacord\r\n    \r\n~~~~~~~~~~~~~ \r\n\r\nBot Example\r\n~~~~~~~~~~~~~ py\r\n\r\nimport asyncio\r\nfrom Liacord import Client, Intents\r\n\r\nintents = Intents().all()\r\nclient = Client(\"your_token_here\", prefix=\"#\", intents=intents)\r\n\r\n@client.command(name=\"name\")\r\nasync def hello(ctx):\r\n await ctx.send(f\"{ctx.author.name}\")\r\n\r\n@client.command(name=\"ping\")\r\nasync def ping(ctx):\r\n await ctx.send(f\"pong {round(client.latency)}ms.\")\r\n\r\n@client.command(name='server_id', brief='get the server id')\r\nasync def server_id_command(ctx):\r\n server_id = ctx.guild.id\r\n await ctx.send(f\"server id: {server_id}\")\r\n\r\nloop = asyncio.get_event_loop()\r\nloop.run_until_complete(client.run())\r\n~~~~~~~~~~~~~\r\nYou can find more examples in the examples directory [There](https://github.com/MaseZev/Liacord.py/tree/main/examples).\r\n\r\n\r\nLinks\r\n\r\n\r\n<br>\r\n<p align=\"center\">\r\n    <a href=\"https://discord.gg/H7FQFGEPz5\">Discord Server</a>\r\n    \u0432\u0403\u2022\r\n    <a href=\"https://discord.gg/discord-developers\">Discord Developers</a>\r\n</p>\r\n<br>\r\n\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A Python wrapper for the Discord API",
    "version": "0.1.9",
    "project_urls": {
        "Discord": "https://discord.gg/H7FQFGEPz5",
        "Homepage": "https://github.com/masezev/Liacord.py"
    },
    "split_keywords": [
        "a",
        "python",
        "wrapper",
        "for",
        "the",
        "discord",
        "api"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "28c5887f9d1551bc05dfdd9869dee5c166577073902a42abfd4db744e14169b1",
                "md5": "1e12657ddfbd315e1367622935917ca1",
                "sha256": "f1f48a8c4f3c550b62d7787598bb7cb7b0038ea8f16a66ca2d62d5b525879aa5"
            },
            "downloads": -1,
            "filename": "Liacord-0.1.9.tar.gz",
            "has_sig": false,
            "md5_digest": "1e12657ddfbd315e1367622935917ca1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8.0",
            "size": 5403,
            "upload_time": "2024-04-08T15:19:28",
            "upload_time_iso_8601": "2024-04-08T15:19:28.923349Z",
            "url": "https://files.pythonhosted.org/packages/28/c5/887f9d1551bc05dfdd9869dee5c166577073902a42abfd4db744e14169b1/Liacord-0.1.9.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-08 15:19:28",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "masezev",
    "github_project": "Liacord.py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "liacord"
}
        
Elapsed time: 0.21515s