Archived
generated from imcompiling/discord-bot-template
This commit is contained in:
Vendored
+14
-13
@@ -1,15 +1,16 @@
|
|||||||
{
|
{
|
||||||
// Use IntelliSense to learn about possible attributes.
|
// Use IntelliSense to learn about possible attributes.
|
||||||
// Hover to view descriptions of existing attributes.
|
// Hover to view descriptions of existing attributes.
|
||||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "Python: Module",
|
"name": "Python: Module",
|
||||||
"type": "debugpy",
|
"type": "debugpy",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"module": "off_cooldown_bot.main",
|
"module": "main",
|
||||||
"justMyCode": true
|
"justMyCode": true,
|
||||||
}
|
"cwd": "${workspaceFolder}/off_cooldown_bot"
|
||||||
]
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,13 +3,13 @@
|
|||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
import nextcord
|
import nextcord
|
||||||
|
from main import birthday_list
|
||||||
from nextcord.ext import commands
|
from nextcord.ext import commands
|
||||||
from pytz import UTC
|
from pytz import UTC
|
||||||
from sqlmodel import Session, col, select
|
from sqlmodel import Session, col, select
|
||||||
|
|
||||||
from off_cooldown_bot.database.db import engine
|
from database.db import engine
|
||||||
from off_cooldown_bot.database.models import UserBirthday
|
from database.models import UserBirthday
|
||||||
from off_cooldown_bot.main import birthday_list
|
|
||||||
|
|
||||||
|
|
||||||
class BirthdayCog(commands.Cog, name="Birthday Commands"):
|
class BirthdayCog(commands.Cog, name="Birthday Commands"):
|
||||||
|
|||||||
@@ -3,17 +3,17 @@
|
|||||||
from datetime import UTC, datetime, time
|
from datetime import UTC, datetime, time
|
||||||
|
|
||||||
import nextcord
|
import nextcord
|
||||||
|
from logger import ocd_logger
|
||||||
|
from main import birthday_list
|
||||||
from nextcord.ext import commands, tasks
|
from nextcord.ext import commands, tasks
|
||||||
from pytz import timezone
|
from pytz import timezone
|
||||||
|
from settings import settings
|
||||||
from sqlalchemy import select
|
from sqlalchemy import select
|
||||||
from sqlalchemy.orm import Session
|
from sqlalchemy.orm import Session
|
||||||
from sqlmodel import col
|
from sqlmodel import col
|
||||||
|
|
||||||
from off_cooldown_bot.database.db import engine
|
from database.db import engine
|
||||||
from off_cooldown_bot.database.models import UserBirthday
|
from 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
|
|
||||||
|
|
||||||
|
|
||||||
class DailyLoop(commands.Cog, name="Daily Loop"):
|
class DailyLoop(commands.Cog, name="Daily Loop"):
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
"""Defines cog for on message listener."""
|
"""Defines cog for on message listener."""
|
||||||
|
|
||||||
import nextcord
|
import nextcord
|
||||||
|
from main import birthday_list
|
||||||
from nextcord.ext import commands
|
from nextcord.ext import commands
|
||||||
|
|
||||||
from off_cooldown_bot.main import birthday_list
|
|
||||||
|
|
||||||
|
|
||||||
class SubmissionListener(commands.Cog, name="Message Listener"):
|
class SubmissionListener(commands.Cog, name="Message Listener"):
|
||||||
"""Sets up message listener."""
|
"""Sets up message listener."""
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
"""Creates logger for Agon bot."""
|
"""Creates logger for Off Cooldown bot."""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
|
|||||||
@@ -6,10 +6,9 @@ import logging
|
|||||||
import pathlib
|
import pathlib
|
||||||
|
|
||||||
import nextcord
|
import nextcord
|
||||||
|
from logger import ocd_logger
|
||||||
from nextcord.ext import commands
|
from nextcord.ext import commands
|
||||||
|
from settings import settings
|
||||||
from .logger import ocd_logger
|
|
||||||
from .settings import settings
|
|
||||||
|
|
||||||
nextcord_logger = logging.getLogger("nextcord")
|
nextcord_logger = logging.getLogger("nextcord")
|
||||||
nextcord_logger.setLevel(logging.DEBUG)
|
nextcord_logger.setLevel(logging.DEBUG)
|
||||||
|
|||||||
Reference in New Issue
Block a user