2 Commits
Author SHA1 Message Date
imcompiling 54a011337a Fix debugger module and imports.
build_develop / build (push) Successful in 21s
2025-03-18 21:45:12 -04:00
imcompiling b3905fa15c Update uv lock. 2025-03-18 21:32:00 -04:00
7 changed files with 26 additions and 38 deletions
+14 -13
View File
@@ -1,15 +1,16 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Module",
"type": "debugpy",
"request": "launch",
"module": "off_cooldown_bot.main",
"justMyCode": true
}
]
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Module",
"type": "debugpy",
"request": "launch",
"module": "main",
"justMyCode": true,
"cwd": "${workspaceFolder}/off_cooldown_bot"
}
]
}
+3 -3
View File
@@ -3,13 +3,13 @@
from datetime import datetime
import nextcord
from main import birthday_list
from nextcord.ext import commands
from pytz import UTC
from sqlmodel import Session, col, select
from off_cooldown_bot.database.db import engine
from off_cooldown_bot.database.models import UserBirthday
from off_cooldown_bot.main import birthday_list
from database.db import engine
from database.models import UserBirthday
class BirthdayCog(commands.Cog, name="Birthday Commands"):
+5 -5
View File
@@ -3,17 +3,17 @@
from datetime import UTC, datetime, time
import nextcord
from logger import ocd_logger
from main import birthday_list
from nextcord.ext import commands, tasks
from pytz import timezone
from settings import settings
from sqlalchemy import select
from sqlalchemy.orm import Session
from sqlmodel import col
from off_cooldown_bot.database.db import engine
from off_cooldown_bot.database.models import UserBirthday
from off_cooldown_bot.logger import ocd_logger
from off_cooldown_bot.main import birthday_list
from off_cooldown_bot.settings import settings
from database.db import engine
from database.models import UserBirthday
class DailyLoop(commands.Cog, name="Daily Loop"):
@@ -1,10 +1,9 @@
"""Defines cog for on message listener."""
import nextcord
from main import birthday_list
from nextcord.ext import commands
from off_cooldown_bot.main import birthday_list
class SubmissionListener(commands.Cog, name="Message Listener"):
"""Sets up message listener."""
+1 -1
View File
@@ -1,4 +1,4 @@
"""Creates logger for Agon bot."""
"""Creates logger for Off Cooldown bot."""
import logging
import sys
+2 -3
View File
@@ -6,10 +6,9 @@ import logging
import pathlib
import nextcord
from logger import ocd_logger
from nextcord.ext import commands
from .logger import ocd_logger
from .settings import settings
from settings import settings
nextcord_logger = logging.getLogger("nextcord")
nextcord_logger.setLevel(logging.DEBUG)
Generated
-11
View File
@@ -306,7 +306,6 @@ source = { virtual = "." }
dependencies = [
{ name = "dataclass-wizard", extra = ["yaml"] },
{ name = "nextcord" },
{ name = "python-dotenv" },
{ name = "pytz" },
{ name = "sqlmodel" },
]
@@ -320,7 +319,6 @@ dev = [
requires-dist = [
{ name = "dataclass-wizard", extras = ["yaml"], specifier = ">=0.22.3,<1.0.0" },
{ name = "nextcord", specifier = ">=2.6.0" },
{ name = "python-dotenv", specifier = ">=1.0.1" },
{ name = "pytz", specifier = ">=2025.1" },
{ name = "sqlmodel", specifier = ">=0.0.22" },
]
@@ -438,15 +436,6 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/51/b2/b2b50d5ecf21acf870190ae5d093602d95f66c9c31f9d5de6062eb329ad1/pydantic_core-2.27.2-cp313-cp313-win_arm64.whl", hash = "sha256:ac4dbfd1691affb8f48c2c13241a2e3b60ff23247cbcf981759c768b6633cf8b", size = 1885186 },
]
[[package]]
name = "python-dotenv"
version = "1.0.1"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/bc/57/e84d88dfe0aec03b7a2d4327012c1627ab5f03652216c63d49846d7a6c58/python-dotenv-1.0.1.tar.gz", hash = "sha256:e324ee90a023d808f1959c46bcbc04446a10ced277783dc6ee09987c37ec10ca", size = 39115 }
wheels = [
{ url = "https://files.pythonhosted.org/packages/6a/3e/b68c118422ec867fa7ab88444e1274aa40681c606d59ac27de5a5588f082/python_dotenv-1.0.1-py3-none-any.whl", hash = "sha256:f7b63ef50f1b690dddf550d03497b66d609393b40b564ed0d674909a68ebf16a", size = 19863 },
]
[[package]]
name = "pytz"
version = "2025.1"