Start refactoring bot, add /remind add command

This commit is contained in:
2025-01-03 15:03:47 +01:00
parent 2e30cafbac
commit c8b6dbfe41
19 changed files with 279 additions and 2774 deletions

0
interactions/__init__.py Normal file
View File

View File

View File

View File

@ -0,0 +1,25 @@
"""This file is only here so we can unpickle the old jobs."""
from __future__ import annotations
class Snowflake:
"""A class to represent a Discord snowflake."""
__slots__: list[str] = ["_snowflake"]
def __init__(self, snowflake: int | str | Snowflake) -> None:
"""Initialize the Snowflake object.
Args:
snowflake (int | str | Snowflake): The snowflake to store.
"""
self._snowflake = str(snowflake)
def __str__(self) -> str:
"""Return the snowflake as a string."""
return self._snowflake
def __int__(self) -> int:
"""Return the snowflake as an integer."""
return int(self._snowflake)