A utility library by JoDBS
Project description
JoDBS_Tools
JoDBS_Tools is a utility library designed to simplify tasks such as connecting to MongoDB databases, implementing role-based access control in Discord bots, and interfacing with external APIs or Node Networks.
Features
- Simplify Bot Setup: Clear up your main bot file and just pass what you need.
- Database Connection: Seamlessly connect to MongoDB databases.
- Role-Based Decorators: Restrict bot commands based on user roles using custom decorators.
- API Integration: Easily connect to external APIs and retrieve data for your applications.
Upcoming Features
- YouTube Video Notifier: Receive notifications for new videos from your favorite YouTubers.
- Enhanced Bot Node Network Integration: Additional methods for connecting to your Bot Node Network.
Installation
Install the package using pip:
pip install jodbs_tools
Usage
Run a simple Discord Bot:
import os
from nextcord.ext import commands
from nextcord import Intents
from JoDBS_Tools import BotSetup
intents = Intents.all()
bot = commands.Bot(intents=intents)
env_path = os.path.join(os.path.dirname(__file__), '.env')
bot_setup = BotSetup(bot, env_path=env_path)
if __name__ == "__main__":
bot_setup.setup_bot()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jodbs_tools-0.0.14.tar.gz
(6.3 kB
view hashes)
Built Distribution
Close
Hashes for JoDBS_Tools-0.0.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | caee1485f89006e9b5e9c09dae1bbb2464a4f3a1da18789191c8fb329fa7c923 |
|
MD5 | 1f1821e78bea21ddc722fe9615969d7b |
|
BLAKE2b-256 | a787fd015c4b33cbe8e7f2b6948a5ae85f207e097f8274dc9837bb18d633b741 |