Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion framework/isobot/db/automod.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@

# Imports
import json
from framework.isobot.colors import Colors as colors

# Functions
class Automod():
"""Initializes the Automod database system."""
def __init__(self):
print("[framework/db/Automod] Automod db library initialized.")
print(f"[framework/db/Automod] {colors.green}Automod db library initialized.{colors.end}")

def load(self) -> dict:
"""Fetches and returns the latest data from the items database."""
Expand Down
3 changes: 2 additions & 1 deletion framework/isobot/db/items.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""The framework module library used for managing isobot's items database."""
# Imports
import json
from framework.isobot.colors import Colors as colors
from framework.isobot.shop import ShopData

# Variables
Expand All @@ -11,7 +12,7 @@
class Items():
"""Used to initialize the items database."""
def __init__(self):
print("[framework/db/Levelling] Items db library initialized.")
print(f"[framework/db/Levelling] {colors.green}Items db library initialized.{colors.end}")

def load(self) -> dict:
"""Fetches and returns the latest data from the items database."""
Expand Down
3 changes: 2 additions & 1 deletion framework/isobot/db/levelling.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
"""The framework module library used for managing isobot's levelling database."""
# Imports
import json
from framework.isobot.colors import Colors as colors

# Functions
class Levelling():
"""Used to initialize the levelling database."""
def __init__(self):
print("[framework/db/Levelling] Levelling db library initialized.")
print(f"[framework/db/Levelling] {colors.green}Levelling db library initialized.{colors.end}")

def load(self) -> dict:
"""Fetches and returns the latest data from the levelling database."""
Expand Down
5 changes: 3 additions & 2 deletions framework/isobot/db/presence.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
# Imports
import json
import time
from framework.isobot.colors import Colors as colors

# Functions
class Presence():
"""Used to initialize the User Presence system."""
def __init__(self):
print("[framework/db/UserData] Presence database initialized.")
print(f"[framework/db/UserData] {colors.green}Presence database initialized.{colors.end}")

def load(self) -> dict:
"""Fetches and returns the latest data from the presence database."""
with open("database/presence.json", 'r', encoding="utf8") as f: db = json.load(f)
Expand Down
3 changes: 2 additions & 1 deletion framework/isobot/db/userdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@

# Imports
import json
from framework.isobot.colors import Colors as colors

# Functions
class UserData():
"""Used to initialize the UserData system."""
def __init__(self):
print("[framework/db/UserData] UserData library initialized.")
print(f"[framework/db/UserData] {colors.green}UserData library initialized.{colors.end}")

def load(self) -> dict:
"""Fetches and returns the latest data from the levelling database."""
Expand Down
13 changes: 3 additions & 10 deletions framework/isobot/db/weather.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
# Imports
import json
from framework.isobot.colors import Colors as colors
from discord import User

# Classes
class Colors:
"""Contains general stdout colors."""
cyan = '\033[96m'
red = '\033[91m'
green = '\033[92m'
end = '\033[0m'

# Functions
class Weather(Colors):
class Weather():
"""Class to manage the weather db"""
def __init__(self):
print(f"[Framework/Loader] {Colors.green}Weather database initialized.{Colors.end}")
print(f"[Framework/Loader] {colors.green}Weather database initialized.{colors.end}")

def load(self) -> dict:
"""Fetches and returns the latest data from the levelling database."""
Expand Down