# py-Ultroid Library
Core library of [The Ultroid](https://github.com/naya1503/Ayra), a python based telegram userbot.
[](https://www.codefactor.io/repository/github/naya1503/pyayra)
[](https://pypi.org/project/py-Ultroid)
[](https://pypi.org/project/py-Ultroid)
[](https://github.com/naya1503/Ayra/graphs/commit-activity)
[](https://github.com/naya1503/Ayra)
[](https://makeapullrequest.com)
# Installation
```bash
pip3 install -U py-Ayra
```
# Documentation
[](http://ayra.tech/)
# Usage
- Create folders named `plugins`, `addons`, `assistant` and `resources`.
- Add your plugins in the `plugins` folder and others accordingly.
- Create a `.env` file with following mandatory Environment Variables
```
API_ID
API_HASH
SESSION
MONGO_URI
```
- Check
[`.env.sample`](https://github.com/naya1503/Ayra/blob/main/.env.sample) for more details.
- Run `python3 -m Ayra` to start the bot.
## Creating plugins
- ### To work everywhere
```python
@ultroid_cmd(
pattern="start"
)
async def _(e):
await e.eor("Ayra Started!")
```
- ### To work only in groups
```python
@ultroid_cmd(
pattern="start",
groups_only=True,
)
async def _(e):
await eor(e, "Ayra Started.")
```
- ### Assistant Plugins 👇
```python
@asst_cmd("start")
async def _(e):
await e.reply("Ayra Started.")
```
See more working plugins on [the offical repository](https://github.com/naya1503/Ayra)!
> Made with 💕 by [Kynan](https://t.me/Rizzvbss).
# License
[](LICENSE)
Ultroid is licensed under [GNU Affero General Public License](https://www.gnu.org/licenses/agpl-3.0.en.html) v3 or later.
# Credits
* [](https://t.me/Rizzvbss)
* [Lonami](https://github.com/Lonami) for [Telethon](https://github.com/LonamiWebs/Telethon)
Raw data
{
"_id": null,
"home_page": "https://github.com/naya1503/pyAyra",
"name": "devslibs",
"maintainer": "",
"docs_url": null,
"requires_python": ">3.7, <3.12",
"maintainer_email": "",
"keywords": "",
"author": "naya1503",
"author_email": "cosmospanas70@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/ca/7b/7f77481fa994280e3ee8f71d8ee7a2c3c4cb544fd7eb9e3e472474f0e1ee/devslibs-2.0.3.tar.gz",
"platform": null,
"description": "# py-Ultroid Library\n\nCore library of [The Ultroid](https://github.com/naya1503/Ayra), a python based telegram userbot.\n\n[](https://www.codefactor.io/repository/github/naya1503/pyayra)\n[](https://pypi.org/project/py-Ultroid) \n[](https://pypi.org/project/py-Ultroid) \n[](https://github.com/naya1503/Ayra/graphs/commit-activity)\n[](https://github.com/naya1503/Ayra)\n[](https://makeapullrequest.com)\n\n# Installation\n```bash\npip3 install -U py-Ayra\n```\n\n# Documentation \n[](http://ayra.tech/)\n\n# Usage\n- Create folders named `plugins`, `addons`, `assistant` and `resources`. \n- Add your plugins in the `plugins` folder and others accordingly. \n- Create a `.env` file with following mandatory Environment Variables\n ```\n API_ID\n API_HASH\n SESSION\n MONGO_URI\n ```\n- Check\n[`.env.sample`](https://github.com/naya1503/Ayra/blob/main/.env.sample) for more details. \n- Run `python3 -m Ayra` to start the bot. \n\n## Creating plugins\n - ### To work everywhere\n\n```python\n@ultroid_cmd(\n pattern=\"start\"\n) \nasync def _(e): \n await e.eor(\"Ayra Started!\") \n```\n\n- ### To work only in groups\n\n```python\n@ultroid_cmd(\n pattern=\"start\",\n groups_only=True,\n) \nasync def _(e): \n await eor(e, \"Ayra Started.\") \n```\n\n- ### Assistant Plugins \ud83d\udc47\n\n```python\n@asst_cmd(\"start\") \nasync def _(e): \n await e.reply(\"Ayra Started.\") \n```\n\nSee more working plugins on [the offical repository](https://github.com/naya1503/Ayra)!\n\n> Made with \ud83d\udc95 by [Kynan](https://t.me/Rizzvbss). \n\n\n# License\n[](LICENSE) \nUltroid is licensed under [GNU Affero General Public License](https://www.gnu.org/licenses/agpl-3.0.en.html) v3 or later.\n\n# Credits\n* [](https://t.me/Rizzvbss)\n* [Lonami](https://github.com/Lonami) for [Telethon](https://github.com/LonamiWebs/Telethon)\n\n\n",
"bugtrack_url": null,
"license": "GNU AFFERO GENERAL PUBLIC LICENSE (v3)",
"summary": "A Secure and Powerful Python-Telethon Based Library For Ayra Userbot.",
"version": "2.0.3",
"project_urls": {
"Bug Tracker": "https://github.com/naya1503/pyAyra/issues",
"Documentation": "https://ultroid.tech",
"Homepage": "https://github.com/naya1503/pyAyra",
"Source Code": "https://github.com/naya1503/pyAyra"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "da1879eeebb1fd0b81ef1ec4dfaebc377dbf801588817df3adbb39cf8698f866",
"md5": "fe9da9d4af0df0a35644d875627127e1",
"sha256": "816784479d82c81d4f6164b71666455182ec4543fa7e829aabe9d87c9e1676da"
},
"downloads": -1,
"filename": "devslibs-2.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "fe9da9d4af0df0a35644d875627127e1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">3.7, <3.12",
"size": 107418,
"upload_time": "2023-07-14T07:42:01",
"upload_time_iso_8601": "2023-07-14T07:42:01.703536Z",
"url": "https://files.pythonhosted.org/packages/da/18/79eeebb1fd0b81ef1ec4dfaebc377dbf801588817df3adbb39cf8698f866/devslibs-2.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ca7b7f77481fa994280e3ee8f71d8ee7a2c3c4cb544fd7eb9e3e472474f0e1ee",
"md5": "01c3ec2db01838f9af7fcf75e22bc9f5",
"sha256": "40164f6aca9dc5689f1f2c5b8568fa8cc7c1bcd9e5fddfe8faf7a416d92c12ad"
},
"downloads": -1,
"filename": "devslibs-2.0.3.tar.gz",
"has_sig": false,
"md5_digest": "01c3ec2db01838f9af7fcf75e22bc9f5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">3.7, <3.12",
"size": 84206,
"upload_time": "2023-07-14T07:42:04",
"upload_time_iso_8601": "2023-07-14T07:42:04.342217Z",
"url": "https://files.pythonhosted.org/packages/ca/7b/7f77481fa994280e3ee8f71d8ee7a2c3c4cb544fd7eb9e3e472474f0e1ee/devslibs-2.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-14 07:42:04",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "naya1503",
"github_project": "pyAyra",
"github_not_found": true,
"lcname": "devslibs"
}