diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 17:11:50 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 17:11:50 +0000 |
commit | fa480fb8b1696e7f80d22ad69fb6693a0ded858a (patch) | |
tree | ec27a0eb7080cb7c79ae061ff1f507a8c0dc9032 | |
parent | f061010607d1de76250b810c7724f67d4197ac74 (diff) |
automatic import of python-py-ultroid
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-py-ultroid.spec | 304 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 306 insertions, 0 deletions
@@ -0,0 +1 @@ +/py-Ultroid-2022.6.6.tar.gz diff --git a/python-py-ultroid.spec b/python-py-ultroid.spec new file mode 100644 index 0000000..b805dc9 --- /dev/null +++ b/python-py-ultroid.spec @@ -0,0 +1,304 @@ +%global _empty_manifest_terminate_build 0 +Name: python-py-Ultroid +Version: 2022.6.6 +Release: 1 +Summary: A Secure and Powerful Python-Telethon Based Library For Ultroid Userbot. +License: GNU AFFERO GENERAL PUBLIC LICENSE (v3) +URL: https://github.com/TeamUltroid/pyUltroid +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/95/59/688262f08a88684ade8b90d58148c41f220eebb0d7b78d1be726d46f5efb/py-Ultroid-2022.6.6.tar.gz +BuildArch: noarch + +Requires: python3-redis +Requires: python3-hiredis +Requires: python3-decouple +Requires: python3-dotenv + +%description +# py-Ultroid Library + +Core library of [The Ultroid](https://github.com/TeamUltroid/Ultroid), a python based telegram userbot. + +[](https://www.codefactor.io/repository/github/teamultroid/pyultroid) +[](https://pypi.org/project/py-Ultroid) +[](https://pypi.org/project/py-Ultroid) +[](https://github.com/TeamUltroid/Ultroid/graphs/commit-activity) +[](https://github.com/TeamUltroid/Ultroid) +[](https://makeapullrequest.com) + +# Installation +```bash +pip3 install -U py-Ultroid +``` + +# Documentation +[](http://ultroid.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 + REDIS_URI + REDIS_PASSWORD + ``` +- Check +[`.env.sample`](https://github.com/TeamUltroid/Ultroid/blob/main/.env.sample) for more details. +- Run `python3 -m pyUltroid` to start the bot. + +## Creating plugins + - ### To work everywhere + +```python +@ultroid_cmd( + pattern="start" +) +async def _(e): + await e.eor("Ultroid Started!") +``` + +- ### To work only in groups + +```python +@ultroid_cmd( + pattern="start", + groups_only=True, +) +async def _(e): + await eor(e, "Ultroid Started.") +``` + +- ### Assistant Plugins 👇 + +```python +@asst_cmd("start") +async def _(e): + await e.reply("Ultroid Started.") +``` + +See more working plugins on [the offical repository](https://github.com/TeamUltroid/Ultroid)! + +> Made with 💕 by [@TeamUltroid](https://t.me/TeamUltroid). + + +# 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/UltroidDevs) +* [Lonami](https://github.com/Lonami) for [Telethon](https://github.com/LonamiWebs/Telethon) + + +%package -n python3-py-Ultroid +Summary: A Secure and Powerful Python-Telethon Based Library For Ultroid Userbot. +Provides: python-py-Ultroid +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-py-Ultroid +# py-Ultroid Library + +Core library of [The Ultroid](https://github.com/TeamUltroid/Ultroid), a python based telegram userbot. + +[](https://www.codefactor.io/repository/github/teamultroid/pyultroid) +[](https://pypi.org/project/py-Ultroid) +[](https://pypi.org/project/py-Ultroid) +[](https://github.com/TeamUltroid/Ultroid/graphs/commit-activity) +[](https://github.com/TeamUltroid/Ultroid) +[](https://makeapullrequest.com) + +# Installation +```bash +pip3 install -U py-Ultroid +``` + +# Documentation +[](http://ultroid.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 + REDIS_URI + REDIS_PASSWORD + ``` +- Check +[`.env.sample`](https://github.com/TeamUltroid/Ultroid/blob/main/.env.sample) for more details. +- Run `python3 -m pyUltroid` to start the bot. + +## Creating plugins + - ### To work everywhere + +```python +@ultroid_cmd( + pattern="start" +) +async def _(e): + await e.eor("Ultroid Started!") +``` + +- ### To work only in groups + +```python +@ultroid_cmd( + pattern="start", + groups_only=True, +) +async def _(e): + await eor(e, "Ultroid Started.") +``` + +- ### Assistant Plugins 👇 + +```python +@asst_cmd("start") +async def _(e): + await e.reply("Ultroid Started.") +``` + +See more working plugins on [the offical repository](https://github.com/TeamUltroid/Ultroid)! + +> Made with 💕 by [@TeamUltroid](https://t.me/TeamUltroid). + + +# 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/UltroidDevs) +* [Lonami](https://github.com/Lonami) for [Telethon](https://github.com/LonamiWebs/Telethon) + + +%package help +Summary: Development documents and examples for py-Ultroid +Provides: python3-py-Ultroid-doc +%description help +# py-Ultroid Library + +Core library of [The Ultroid](https://github.com/TeamUltroid/Ultroid), a python based telegram userbot. + +[](https://www.codefactor.io/repository/github/teamultroid/pyultroid) +[](https://pypi.org/project/py-Ultroid) +[](https://pypi.org/project/py-Ultroid) +[](https://github.com/TeamUltroid/Ultroid/graphs/commit-activity) +[](https://github.com/TeamUltroid/Ultroid) +[](https://makeapullrequest.com) + +# Installation +```bash +pip3 install -U py-Ultroid +``` + +# Documentation +[](http://ultroid.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 + REDIS_URI + REDIS_PASSWORD + ``` +- Check +[`.env.sample`](https://github.com/TeamUltroid/Ultroid/blob/main/.env.sample) for more details. +- Run `python3 -m pyUltroid` to start the bot. + +## Creating plugins + - ### To work everywhere + +```python +@ultroid_cmd( + pattern="start" +) +async def _(e): + await e.eor("Ultroid Started!") +``` + +- ### To work only in groups + +```python +@ultroid_cmd( + pattern="start", + groups_only=True, +) +async def _(e): + await eor(e, "Ultroid Started.") +``` + +- ### Assistant Plugins 👇 + +```python +@asst_cmd("start") +async def _(e): + await e.reply("Ultroid Started.") +``` + +See more working plugins on [the offical repository](https://github.com/TeamUltroid/Ultroid)! + +> Made with 💕 by [@TeamUltroid](https://t.me/TeamUltroid). + + +# 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/UltroidDevs) +* [Lonami](https://github.com/Lonami) for [Telethon](https://github.com/LonamiWebs/Telethon) + + +%prep +%autosetup -n py-Ultroid-2022.6.6 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-py-Ultroid -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2022.6.6-1 +- Package Spec generated @@ -0,0 +1 @@ +58d7ae76f0b0a261fa3926a11b5cee46 py-Ultroid-2022.6.6.tar.gz |