summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-discordeconomy.spec335
-rw-r--r--sources1
3 files changed, 337 insertions, 0 deletions
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
+<details>
+<summary>Release 1.3.8</summary>
+
+- fixed typing for get_all_data function
+</details>
+<details>
+<summary>Release 1.3.7</summary>
+
+- added full typing for functions
+</details>
+
+<details>
+<summary>Release 1.3.6</summary>
+
+- deprecated DiscordEconomy.Economy(), use 'from DiscordEconomy.Sqlite import Economy' instead
+- added support for mongodb
+</details>
+
+<details>
+<summary>Release 1.3.5</summary>
+
+- code rewrite
+- add some more examples(including new discord.py slash commands, and adding a new minigame)
+</details>
+
+<details about="Release Information">
+
+<summary>Release 1.3.4</summary>
+
+- added checking for the latest version
+- code rewrite
+</details>
+
+<details about="Release Information">
+
+<summary>Release 1.3.3</summary>
+
+- Added simple documentation
+</details>
+
+
+
+
+## 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 <economy>.is_registered(user_id)
+await <economy>.get_user(user_id)
+await <economy>.delete_user_account(user_id)
+await <economy>.get_all_data()
+await <economy>.add_money(user_id, value, amount)
+await <economy>.remove_money(user_id, value, amount)
+await <economy>.set_money(user_id, value, amount)
+await <economy>.add_item(user_id, item)
+await <economy>.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
+<details>
+<summary>Release 1.3.8</summary>
+
+- fixed typing for get_all_data function
+</details>
+<details>
+<summary>Release 1.3.7</summary>
+
+- added full typing for functions
+</details>
+
+<details>
+<summary>Release 1.3.6</summary>
+
+- deprecated DiscordEconomy.Economy(), use 'from DiscordEconomy.Sqlite import Economy' instead
+- added support for mongodb
+</details>
+
+<details>
+<summary>Release 1.3.5</summary>
+
+- code rewrite
+- add some more examples(including new discord.py slash commands, and adding a new minigame)
+</details>
+
+<details about="Release Information">
+
+<summary>Release 1.3.4</summary>
+
+- added checking for the latest version
+- code rewrite
+</details>
+
+<details about="Release Information">
+
+<summary>Release 1.3.3</summary>
+
+- Added simple documentation
+</details>
+
+
+
+
+## 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 <economy>.is_registered(user_id)
+await <economy>.get_user(user_id)
+await <economy>.delete_user_account(user_id)
+await <economy>.get_all_data()
+await <economy>.add_money(user_id, value, amount)
+await <economy>.remove_money(user_id, value, amount)
+await <economy>.set_money(user_id, value, amount)
+await <economy>.add_item(user_id, item)
+await <economy>.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
+<details>
+<summary>Release 1.3.8</summary>
+
+- fixed typing for get_all_data function
+</details>
+<details>
+<summary>Release 1.3.7</summary>
+
+- added full typing for functions
+</details>
+
+<details>
+<summary>Release 1.3.6</summary>
+
+- deprecated DiscordEconomy.Economy(), use 'from DiscordEconomy.Sqlite import Economy' instead
+- added support for mongodb
+</details>
+
+<details>
+<summary>Release 1.3.5</summary>
+
+- code rewrite
+- add some more examples(including new discord.py slash commands, and adding a new minigame)
+</details>
+
+<details about="Release Information">
+
+<summary>Release 1.3.4</summary>
+
+- added checking for the latest version
+- code rewrite
+</details>
+
+<details about="Release Information">
+
+<summary>Release 1.3.3</summary>
+
+- Added simple documentation
+</details>
+
+
+
+
+## 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 <economy>.is_registered(user_id)
+await <economy>.get_user(user_id)
+await <economy>.delete_user_account(user_id)
+await <economy>.get_all_data()
+await <economy>.add_money(user_id, value, amount)
+await <economy>.remove_money(user_id, value, amount)
+await <economy>.set_money(user_id, value, amount)
+await <economy>.add_item(user_id, item)
+await <economy>.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 <Python_Bot@openeuler.org> - 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