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.
- Enhanced Bot Network Integration: Additional methods for connecting to your Bot Node Network.
- YouTube Video Notifier: Receive notifications for new videos from your favorite YouTubers.
Upcoming Features
- Asynchronous Functions: Improved performance with asynchronous functions for bot setup and network connections.
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
bot = commands.Bot(intents=Intents.all())
env_path = os.path.join(os.path.dirname(__file__), '.env')
bot_setup = BotSetup(bot, env_path=env_path, BotNetConnection=False)
if __name__ == "__main__":
bot_setup.setup_bot(BotNetConnection=False)
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.2.2.tar.gz
(8.2 kB
view hashes)
Built Distribution
Close
Hashes for JoDBS_Tools-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abeef663f4f96d4ea02f24e691c759492f4d4adf41f6184c4ad4160520717ba2 |
|
MD5 | 29478a9392e7dbfa580ba92c388dd935 |
|
BLAKE2b-256 | 47580838c9c50591543cc161812766b40d55425e4206c0e69b40776d1f9de24b |