Skip to content

Commit

Permalink
Merge pull request #5 from rahul-nanwani/latest
Browse files Browse the repository at this point in the history
Release v1.0.0
  • Loading branch information
rahul-nanwani authored Feb 3, 2023
2 parents 3f62d14 + fdd705d commit cd1ad13
Show file tree
Hide file tree
Showing 6 changed files with 260 additions and 89 deletions.
130 changes: 130 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
.idea/
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/
21 changes: 8 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
<div align="center">
<h1>interactions-dbl<h1>
<img alt="PyPI" src="https://img.shields.io/pypi/v/interactions-dbl?color=4c7fbd&label=version&logoColor=33364b&style=flat-square">
<img alt="PyPI - Status" src="https://img.shields.io/pypi/status/interactions-dbl?color=4c7fbd&logoColor=33364b&style=flat-square">
<img alt="PyPI - License" src="https://img.shields.io/pypi/l/interactions-dbl?color=4c7fbd&logoColor=33364b&style=flat-square">
<h1>interactions-dbl</h1>
<img alt="PyPI" src="https://img.shields.io/pypi/v/interactions-dbl?&label=version&style=flat-square">
<img alt="PyPI - Status" src="https://img.shields.io/pypi/status/interactions-dbl?style=flat-square">
<img alt="PyPI - License" src="https://img.shields.io/pypi/l/interactions-dbl?style=flat-square">
<hr>
</div>

---

DBL (Discord Bot Lists) extension library for discord-py-interactions.

Find the supported bot listings [here](https://botblock.org/lists).

---

## Features

- Update server count on most of the bot listings.
Expand All @@ -25,8 +22,6 @@ Find the supported bot listings [here](https://botblock.org/lists).
pip install interactions-dbl
```

---

## Examples

### Using `bot.py`
Expand All @@ -50,7 +45,7 @@ if __name__ == '__main__':
"top.gg": TOPGG_TOKEN,
"discordbotlist.com": DBL_TOKEN
}
DBLClient(bot=bot, auth=auth)
DBLClient(bot, auth=auth)


bot.start()
Expand All @@ -73,9 +68,9 @@ class UpdateCount(interactions.Extension):
"top.gg": TOPGG_TOKEN,
"discordbotlist.com": DBL_TOKEN
}
DBLClient(bot=self.bot, auth=auth)
DBLClient(self.bot, auth=auth)


def setup(client):
UpdateCount(client)
```
```
15 changes: 13 additions & 2 deletions interactions/ext/dbl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,21 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

"""interactions-dbl v1.0.0
Documentation: https://github.com/rahul-nanwani/interactions-dbl/wiki
Author: Rahul Nanwani
License: MIT
"""

from interactions.base import __version__ as __lib_version__

__version__ = "1.0.b2"
__version__ = "1.0.0"
__ext_version__ = f"{__lib_version__}:{__version__}"

__title__ = "interactions-dbl"
__author__ = "Rahul Nanwani"
__license__ = "MIT License"

from .exceptions import * # noqa: F401 F403
from .client import DBLClient # noqa: F401 F403
from .client import * # noqa: F401 F403
Loading

0 comments on commit cd1ad13

Please sign in to comment.