https://github.com/rahul-nanwani/interactions-dbl
DBL (Discord Bot Lists) extension library for interactions.py
https://github.com/rahul-nanwani/interactions-dbl
count dbl discord guilds interactions-py topgg
Last synced: 5 months ago
JSON representation
DBL (Discord Bot Lists) extension library for interactions.py
- Host: GitHub
- URL: https://github.com/rahul-nanwani/interactions-dbl
- Owner: rahul-nanwani
- License: mit
- Created: 2022-12-09T11:45:47.000Z (over 3 years ago)
- Default Branch: stable
- Last Pushed: 2023-02-03T15:40:44.000Z (over 3 years ago)
- Last Synced: 2025-08-29T07:38:25.855Z (9 months ago)
- Topics: count, dbl, discord, guilds, interactions-py, topgg
- Language: Python
- Homepage: https://pypi.org/project/interactions-dbl/
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
interactions-dbl
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.
---
## Installation
```Shell
pip install interactions-dbl
```
## Examples
### Using `bot.py`
```python
import interactions
from interactions.ext.dbl import DBLClient
from config import BOT_TOKEN, TOPGG_TOKEN, DBL_TOKEN
if __name__ == '__main__':
bot = interactions.Client(
token=BOT_TOKEN,
intents=interactions.Intents.DEFAULT
)
@bot.event
async def on_ready():
auth = {
"top.gg": TOPGG_TOKEN,
"discordbotlist.com": DBL_TOKEN
}
DBLClient(bot, auth=auth)
bot.start()
```
### Using cogs
```python
import interactions
from interactions.ext.dbl import DBLClient
from config import TOPGG_TOKEN, DBL_TOKEN
class UpdateCount(interactions.Extension):
def __init__(self, bot):
self.bot: interactions.Extension = bot
auth = {
"top.gg": TOPGG_TOKEN,
"discordbotlist.com": DBL_TOKEN
}
DBLClient(self.bot, auth=auth)
def setup(client):
UpdateCount(client)
```