From 1166acd27b933d32aad059d5af0ca581c14d5372 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 5 May 2023 08:33:43 +0000 Subject: automatic import of python-discordeconomy --- .gitignore | 1 + python-discordeconomy.spec | 335 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 337 insertions(+) create mode 100644 python-discordeconomy.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..a2825b2 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/DiscordEconomy-1.3.8.tar.gz diff --git a/python-discordeconomy.spec b/python-discordeconomy.spec new file mode 100644 index 0000000..2cc528b --- /dev/null +++ b/python-discordeconomy.spec @@ -0,0 +1,335 @@ +%global _empty_manifest_terminate_build 0 +Name: python-DiscordEconomy +Version: 1.3.8 +Release: 1 +Summary: Discord.py, other libs(hikari etc.), and forks(pycord, nextcord etc.) extension to create economy easily with support of Sqlite/MongoDB. +License: MIT +URL: https://github.com/Nohet/DiscordEconomy +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/37/18/ce3dc677655a1af7b7e944c4376d868efbc60acb8e2e724214c4e13e33bc/DiscordEconomy-1.3.8.tar.gz +BuildArch: noarch + +Requires: python3-aiosqlite +Requires: python3-aiohttp +Requires: python3-motor +Requires: python3-dnspython +Requires: python3-nest-asyncio + +%description +# DiscordEconomy 1.3.8 +[![Downloads](https://pepy.tech/badge/discordeconomy)](https://pepy.tech/project/discordeconomy) +![PyPI - License](https://img.shields.io/pypi/l/DiscordEconomy) +[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/Nohet/DiscordEconomy.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Nohet/DiscordEconomy/context:python) +[![Total alerts](https://img.shields.io/lgtm/alerts/g/Nohet/DiscordEconomy.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Nohet/DiscordEconomy/alerts/) + +Discord.py, other libs(hikari etc.), and forks(pycord, nextcord etc.) extension to create economy easily with support +of **Sqlite**/**MongoDB**. + +## Release Information +
+Release 1.3.8 + +- fixed typing for get_all_data function +
+
+Release 1.3.7 + +- added full typing for functions +
+ +
+Release 1.3.6 + +- deprecated DiscordEconomy.Economy(), use 'from DiscordEconomy.Sqlite import Economy' instead +- added support for mongodb +
+ +
+Release 1.3.5 + +- code rewrite +- add some more examples(including new discord.py slash commands, and adding a new minigame) +
+ +
+ +Release 1.3.4 + +- added checking for the latest version +- code rewrite +
+ +
+ +Release 1.3.3 + +- Added simple documentation +
+ + + + +## Important Links +* [Documentation](https://nohet.github.io/DiscordEconomy/) + +## Installation + +You can install package directly from pypi + +`pip install DiscordEconomy` + +## Functions available + +The current list of asynchronous functions available are: + +```python +await .is_registered(user_id) +await .get_user(user_id) +await .delete_user_account(user_id) +await .get_all_data() +await .add_money(user_id, value, amount) +await .remove_money(user_id, value, amount) +await .set_money(user_id, value, amount) +await .add_item(user_id, item) +await .remove_item(user_id, item) + ``` + + +## Example Usage + +**All the examples for this package are available on [GitHub](https://github.com/Nohet/DiscordEconomy/tree/main/examples)** + +Note that for using this examples you have to change token to yours and: +- enable message and member intent in discord developer portal while using message commands example +- enable member intent in discord developer portal and pass guild id where to register slash commands while using slash commands example + + +%package -n python3-DiscordEconomy +Summary: Discord.py, other libs(hikari etc.), and forks(pycord, nextcord etc.) extension to create economy easily with support of Sqlite/MongoDB. +Provides: python-DiscordEconomy +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-DiscordEconomy +# DiscordEconomy 1.3.8 +[![Downloads](https://pepy.tech/badge/discordeconomy)](https://pepy.tech/project/discordeconomy) +![PyPI - License](https://img.shields.io/pypi/l/DiscordEconomy) +[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/Nohet/DiscordEconomy.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Nohet/DiscordEconomy/context:python) +[![Total alerts](https://img.shields.io/lgtm/alerts/g/Nohet/DiscordEconomy.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Nohet/DiscordEconomy/alerts/) + +Discord.py, other libs(hikari etc.), and forks(pycord, nextcord etc.) extension to create economy easily with support +of **Sqlite**/**MongoDB**. + +## Release Information +
+Release 1.3.8 + +- fixed typing for get_all_data function +
+
+Release 1.3.7 + +- added full typing for functions +
+ +
+Release 1.3.6 + +- deprecated DiscordEconomy.Economy(), use 'from DiscordEconomy.Sqlite import Economy' instead +- added support for mongodb +
+ +
+Release 1.3.5 + +- code rewrite +- add some more examples(including new discord.py slash commands, and adding a new minigame) +
+ +
+ +Release 1.3.4 + +- added checking for the latest version +- code rewrite +
+ +
+ +Release 1.3.3 + +- Added simple documentation +
+ + + + +## Important Links +* [Documentation](https://nohet.github.io/DiscordEconomy/) + +## Installation + +You can install package directly from pypi + +`pip install DiscordEconomy` + +## Functions available + +The current list of asynchronous functions available are: + +```python +await .is_registered(user_id) +await .get_user(user_id) +await .delete_user_account(user_id) +await .get_all_data() +await .add_money(user_id, value, amount) +await .remove_money(user_id, value, amount) +await .set_money(user_id, value, amount) +await .add_item(user_id, item) +await .remove_item(user_id, item) + ``` + + +## Example Usage + +**All the examples for this package are available on [GitHub](https://github.com/Nohet/DiscordEconomy/tree/main/examples)** + +Note that for using this examples you have to change token to yours and: +- enable message and member intent in discord developer portal while using message commands example +- enable member intent in discord developer portal and pass guild id where to register slash commands while using slash commands example + + +%package help +Summary: Development documents and examples for DiscordEconomy +Provides: python3-DiscordEconomy-doc +%description help +# DiscordEconomy 1.3.8 +[![Downloads](https://pepy.tech/badge/discordeconomy)](https://pepy.tech/project/discordeconomy) +![PyPI - License](https://img.shields.io/pypi/l/DiscordEconomy) +[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/Nohet/DiscordEconomy.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Nohet/DiscordEconomy/context:python) +[![Total alerts](https://img.shields.io/lgtm/alerts/g/Nohet/DiscordEconomy.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Nohet/DiscordEconomy/alerts/) + +Discord.py, other libs(hikari etc.), and forks(pycord, nextcord etc.) extension to create economy easily with support +of **Sqlite**/**MongoDB**. + +## Release Information +
+Release 1.3.8 + +- fixed typing for get_all_data function +
+
+Release 1.3.7 + +- added full typing for functions +
+ +
+Release 1.3.6 + +- deprecated DiscordEconomy.Economy(), use 'from DiscordEconomy.Sqlite import Economy' instead +- added support for mongodb +
+ +
+Release 1.3.5 + +- code rewrite +- add some more examples(including new discord.py slash commands, and adding a new minigame) +
+ +
+ +Release 1.3.4 + +- added checking for the latest version +- code rewrite +
+ +
+ +Release 1.3.3 + +- Added simple documentation +
+ + + + +## Important Links +* [Documentation](https://nohet.github.io/DiscordEconomy/) + +## Installation + +You can install package directly from pypi + +`pip install DiscordEconomy` + +## Functions available + +The current list of asynchronous functions available are: + +```python +await .is_registered(user_id) +await .get_user(user_id) +await .delete_user_account(user_id) +await .get_all_data() +await .add_money(user_id, value, amount) +await .remove_money(user_id, value, amount) +await .set_money(user_id, value, amount) +await .add_item(user_id, item) +await .remove_item(user_id, item) + ``` + + +## Example Usage + +**All the examples for this package are available on [GitHub](https://github.com/Nohet/DiscordEconomy/tree/main/examples)** + +Note that for using this examples you have to change token to yours and: +- enable message and member intent in discord developer portal while using message commands example +- enable member intent in discord developer portal and pass guild id where to register slash commands while using slash commands example + + +%prep +%autosetup -n DiscordEconomy-1.3.8 + +%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-DiscordEconomy -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot - 1.3.8-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..00c34d7 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +76e75f22519eda6272b93b452ec8c7ca DiscordEconomy-1.3.8.tar.gz -- cgit v1.2.3