netcord


Namenetcord JSON
Version 0.5.0 PyPI version JSON
download
home_page
SummaryAn easy-to-use extension for Discord.py and Pycord
upload_time2023-12-16 02:29:15
maintainer
docs_urlNone
authorace
requires_python>=3.9
licenseMIT
keywords discord pycord py-cord discord.py
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            

[![]()](https://discord.gg/zfvbjTEzv6)
[![]()](https://pypi.org/project/netcord/)
[![](https://img.shields.io/pypi/l/netcord?style=for-the-badge)](https://github.com/tibue99/netcord/blob/main/LICENSE)
[![]()](https://github.com/sqiuwsqjjsxsajisaj/Netcord)

An easy-to-use extension for [Discord.py](https://github.com/Rapptz/discord.py)
and [Pycord](https://github.com/Pycord-Development/pycord) with some utility functions.

## Features
- Easy cog loading
- Automatic error handling
- Error report webhooks
- Embed templates
- Beautiful ready event
- Custom logging
- Automated help command
- Datetime and file utilities
- Wrapper for [aiosqlite](https://github.com/omnilib/aiosqlite)

## Installing
Python 3.9 or higher is required.
```
pip install netcord
```
You can also install the latest version from GitHub. Note that this version may be unstable
and requires [git](https://git-scm.com/downloads) to be installed.
```
pip install git+https://github.com/sqiuwsqjjsxsajisaj/Netcord.git
```
If you need the latest version in your `requirements.txt` file, you can add this line:
```
netcord @ git+https://github.com/sqiuwsqjjsxsajisaj/Netcord.git
```

## Useful Links
- [PyPi](https://pypi.org/project/netcord/)
- [Pycord Docs](https://docs.pycord.dev/)

## Examples
- **Note:** It's recommended to [load the token](https://guide.pycord.dev/getting-started/creating-your-first-bot#protecting-tokens) from a `.env` file instead of hardcoding it.
netCord can automatically load the token if a `TOKEN` variable is present in the `.env` file.

### Pycord
```py
import netcord
import discord

bot = netcord.Bot(
    intents=discord.Intents.default()
)

if __name__ == "__main__":
    bot.load_cogs("cogs")  # Load all cogs in the "cogs" folder
    bot.net("TOKEN")
```

### Discord.py
```py
import asyncio
import discord
import netcord


class Bot(netcord.Bot):
    def __init__(self):
        super().__init__(intents=discord.Intents.default())

    async def setup_hook(self):
        await super().setup_hook()
        await self.tree.sync()


async def main():
    async with Bot() as bot:
        bot.add_help_command()
        bot.load_cogs("cogs")  # Load all cogs in the "cogs" folder
        await bot.netstart("TOKEN")


if __name__ == "__main__":
    asyncio.run(main())
```

## Contributing
I am always happy to receive contributions. Here is how to do it:
1. Fork this repository
2. Make changes
3. Create a pull request

You can also [join the server ](https://discord.gg/PcaDmJpyjX) if you find any bugs.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "netcord",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "discord,pycord,py-cord,discord.py",
    "author": "ace",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/8a/e1/d71475860c04d1908358e9af606429832aa56242d4e6ef7bd6657a4ef4a4/netcord-0.5.0.tar.gz",
    "platform": null,
    "description": "\r\n\r\n[![]()](https://discord.gg/zfvbjTEzv6)\r\n[![]()](https://pypi.org/project/netcord/)\r\n[![](https://img.shields.io/pypi/l/netcord?style=for-the-badge)](https://github.com/tibue99/netcord/blob/main/LICENSE)\r\n[![]()](https://github.com/sqiuwsqjjsxsajisaj/Netcord)\r\n\r\nAn easy-to-use extension for [Discord.py](https://github.com/Rapptz/discord.py)\r\nand [Pycord](https://github.com/Pycord-Development/pycord) with some utility functions.\r\n\r\n## Features\r\n- Easy cog loading\r\n- Automatic error handling\r\n- Error report webhooks\r\n- Embed templates\r\n- Beautiful ready event\r\n- Custom logging\r\n- Automated help command\r\n- Datetime and file utilities\r\n- Wrapper for [aiosqlite](https://github.com/omnilib/aiosqlite)\r\n\r\n## Installing\r\nPython 3.9 or higher is required.\r\n```\r\npip install netcord\r\n```\r\nYou can also install the latest version from GitHub. Note that this version may be unstable\r\nand requires [git](https://git-scm.com/downloads) to be installed.\r\n```\r\npip install git+https://github.com/sqiuwsqjjsxsajisaj/Netcord.git\r\n```\r\nIf you need the latest version in your `requirements.txt` file, you can add this line:\r\n```\r\nnetcord @ git+https://github.com/sqiuwsqjjsxsajisaj/Netcord.git\r\n```\r\n\r\n## Useful Links\r\n- [PyPi](https://pypi.org/project/netcord/)\r\n- [Pycord Docs](https://docs.pycord.dev/)\r\n\r\n## Examples\r\n- **Note:** It's recommended to [load the token](https://guide.pycord.dev/getting-started/creating-your-first-bot#protecting-tokens) from a `.env` file instead of hardcoding it.\r\nnetCord can automatically load the token if a `TOKEN` variable is present in the `.env` file.\r\n\r\n### Pycord\r\n```py\r\nimport netcord\r\nimport discord\r\n\r\nbot = netcord.Bot(\r\n    intents=discord.Intents.default()\r\n)\r\n\r\nif __name__ == \"__main__\":\r\n    bot.load_cogs(\"cogs\")  # Load all cogs in the \"cogs\" folder\r\n    bot.net(\"TOKEN\")\r\n```\r\n\r\n### Discord.py\r\n```py\r\nimport asyncio\r\nimport discord\r\nimport netcord\r\n\r\n\r\nclass Bot(netcord.Bot):\r\n    def __init__(self):\r\n        super().__init__(intents=discord.Intents.default())\r\n\r\n    async def setup_hook(self):\r\n        await super().setup_hook()\r\n        await self.tree.sync()\r\n\r\n\r\nasync def main():\r\n    async with Bot() as bot:\r\n        bot.add_help_command()\r\n        bot.load_cogs(\"cogs\")  # Load all cogs in the \"cogs\" folder\r\n        await bot.netstart(\"TOKEN\")\r\n\r\n\r\nif __name__ == \"__main__\":\r\n    asyncio.run(main())\r\n```\r\n\r\n## Contributing\r\nI am always happy to receive contributions. Here is how to do it:\r\n1. Fork this repository\r\n2. Make changes\r\n3. Create a pull request\r\n\r\nYou can also [join the server ](https://discord.gg/PcaDmJpyjX) if you find any bugs.\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "An easy-to-use extension for Discord.py and Pycord",
    "version": "0.5.0",
    "project_urls": {
        "GitHub": "https://github.com/sqiuwsqjjsxsajisaj/Netcord"
    },
    "split_keywords": [
        "discord",
        "pycord",
        "py-cord",
        "discord.py"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e7be6d86c26e718a77dd8edf14e4d99c63fa75a745447b238bc94e343dc1167a",
                "md5": "430b409ad206121dcd4b29ddb6f3e58b",
                "sha256": "17c3f21f22a3c011f5fcfffe1757d03c99a1a6436972d417d1881b0c12a52190"
            },
            "downloads": -1,
            "filename": "netcord-0.5.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "430b409ad206121dcd4b29ddb6f3e58b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 46734,
            "upload_time": "2023-12-16T02:29:13",
            "upload_time_iso_8601": "2023-12-16T02:29:13.604159Z",
            "url": "https://files.pythonhosted.org/packages/e7/be/6d86c26e718a77dd8edf14e4d99c63fa75a745447b238bc94e343dc1167a/netcord-0.5.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8ae1d71475860c04d1908358e9af606429832aa56242d4e6ef7bd6657a4ef4a4",
                "md5": "5f38b1d05aa2be20ab3ff4422c6a7135",
                "sha256": "3883f72e1ec7aaa3fc23801c468af22991f8a7350f38fea930cf982d1b6fcabf"
            },
            "downloads": -1,
            "filename": "netcord-0.5.0.tar.gz",
            "has_sig": false,
            "md5_digest": "5f38b1d05aa2be20ab3ff4422c6a7135",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 40808,
            "upload_time": "2023-12-16T02:29:15",
            "upload_time_iso_8601": "2023-12-16T02:29:15.648391Z",
            "url": "https://files.pythonhosted.org/packages/8a/e1/d71475860c04d1908358e9af606429832aa56242d4e6ef7bd6657a4ef4a4/netcord-0.5.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-16 02:29:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sqiuwsqjjsxsajisaj",
    "github_project": "Netcord",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "netcord"
}
        
ace
Elapsed time: 0.16243s