Compare commits

...
43 Commits
Author SHA1 Message Date
renovate-bot 3f37887345 Update dependency setuptools to v80 2025-05-18 04:01:56 +00:00
renovate-bot 886ac2f7ee Update ghcr.io/astral-sh/uv Docker tag to v0.7.5
build_latest / build (push) Successful in 47s
2025-05-18 04:01:21 +00:00
renovate-bot f06033d2ec Update ghcr.io/astral-sh/uv Docker tag to v0.7.3
build_latest / build (push) Successful in 52s
2025-05-11 04:01:29 +00:00
renovate-bot 2ffc4126d2 Update ghcr.io/astral-sh/uv Docker tag to v0.7.2
build_latest / build (push) Successful in 52s
2025-05-04 04:01:47 +00:00
renovate-bot 4280ddd841 Update ghcr.io/astral-sh/uv Docker tag to v0.6.17
build_latest / build (push) Successful in 39s
2025-04-27 04:01:16 +00:00
imcompiling 58c167bbe3 Revert "Remove setuptools as a dependency."
build_latest / build (push) Successful in 31s
This reverts commit c5e4a94cd2.
2025-04-23 14:52:51 -04:00
renovate-bot 303e359c32 Update python Docker tag to v3.13.3 2025-04-13 14:13:26 +00:00
renovate-bot fb460ccc2c Update ghcr.io/astral-sh/uv Docker tag to v0.6.14 2025-04-13 14:13:21 +00:00
imcompiling c5e4a94cd2 Remove setuptools as a dependency.
build_latest / build (push) Successful in 37s
2025-04-06 12:07:20 -04:00
imcompiling f95955dc7f Merge pull request 'Update docker/login-action action to v3' (#92) from renovate/docker-login-action-3.x into main
build_latest / build (push) Successful in 24s
Reviewed-on: #92
Reviewed-by: imcompiling <[email protected]>
2025-04-06 11:59:05 -04:00
renovate-bot dfea936aaa Update docker/login-action action to v3 2025-04-06 04:02:18 +00:00
renovate-bot 1df639499c Update ghcr.io/astral-sh/uv Docker tag to v0.6.12
build_latest / build (push) Successful in 38s
2025-04-06 04:01:44 +00:00
renovate-bot be3ec007af Update dependency pytz to <2025.3,>=2025.2
build_latest / build (push) Successful in 33s
2025-03-30 04:02:06 +00:00
renovate-bot e8839d2930 Update ghcr.io/astral-sh/uv Docker tag to v0.6.10
build_latest / build (push) Waiting to run
2025-03-30 04:01:39 +00:00
imcompiling 29eb21b286 Merge pull request 'Update dependency pytz to v2025' (#89) from renovate/pytz-2025.x into main
build_latest / build (push) Successful in 29s
Reviewed-on: #89
Reviewed-by: imcompiling <[email protected]>
2025-03-23 23:39:51 -04:00
renovate-bot b7439631d9 Update dependency pytz to v2025 2025-03-23 04:01:44 +00:00
renovate-bot 6b9d8f6ad9 Update ghcr.io/astral-sh/uv Docker tag to v0.6.9
build_latest / build (push) Successful in 38s
2025-03-23 04:01:14 +00:00
imcompiling c48fba9c85 Update the create database script to account for directory structure change.
build_latest / build (push) Successful in 36s
2025-03-21 10:03:11 -04:00
imcompiling 7e3b57f4b6 Update pyproject to point to home directory, add an init and remove pyproject that ignores the warning that the init file fixes. 2025-03-21 10:02:30 -04:00
imcompiling 889ba2fd6b Correct cog listing.
build_latest / build (push) Successful in 32s
2025-03-19 17:47:58 -04:00
imcompiling 8b5c954aa5 Remove poetry lock.
build_latest / build (push) Successful in 34s
2025-03-19 11:20:00 -04:00
imcompiling adc44d4466 Merge branch '82-uv'
build_latest / build (push) Has been cancelled
2025-03-19 11:17:52 -04:00
imcompiling 969f380b08 Add ignore workflow runs on readme changes.
build_latest / build (push) Successful in 23s
2025-03-17 16:46:27 -04:00
imcompiling 10d7014c41 Merge branch 'main' of https://gitea.cheezers.org/imcompiling/dakiny-bot 2025-03-17 16:46:16 -04:00
renovate-bot 89e77a6671 Update dependency ruff to ^0.11.0
build_latest / build (push) Successful in 1m14s
2025-03-16 04:02:09 +00:00
renovate-bot c2ff656114 Update dependency sqlalchemy to v2.0.39
build_latest / build (push) Waiting to run
2025-03-16 04:02:02 +00:00
renovate-bot 81e2957fa5 Update dependency ruff to v0.9.10
build_latest / build (push) Successful in 19s
2025-03-09 05:01:41 +00:00
renovate-bot ba24a268ec Update dependency ruff to v0.9.9
build_latest / build (push) Successful in 20s
2025-03-02 05:02:12 +00:00
renovate-bot 70d262d947 Update dependency fastapi to v0.115.11
build_latest / build (push) Waiting to run
2025-03-02 05:02:04 +00:00
imcompiling 6199350cca Merge pull request 'Update actions/checkout action to v4' (#85) from renovate/actions-checkout-4.x into main
build_latest / build (push) Successful in 1m32s
Reviewed-on: #85
Reviewed-by: imcompiling <[email protected]>
2025-02-25 09:27:43 -05:00
renovate-bot c5e2b39648 Update actions/checkout action to v4 2025-02-23 05:01:30 +00:00
renovate-bot 5db2b43d6a Update python Docker tag to v3.13.2
build_latest / build (push) Successful in 1m33s
2025-02-23 05:01:24 +00:00
renovate-bot b9be9e5470 Update dependency ruff to ^0.9.0
build_latest / build (push) Successful in 1m13s
2025-02-22 13:06:23 +00:00
renovate-bot 6700199a36 Update dependency fastapi to ^0.115.0
build_latest / build (push) Waiting to run
2025-02-22 13:06:16 +00:00
renovate-bot 8f9821e9c9 Update dependency dataclass-wizard to ^0.35.0
build_latest / build (push) Successful in 1m20s
2025-02-16 05:01:51 +00:00
renovate-bot 83af20e04c Update dependency sqlalchemy to v2.0.38
build_latest / build (push) Waiting to run
2025-02-16 05:01:43 +00:00
imcompiling f1dd3cbd3b Rename yml files to yaml. 2025-02-04 22:53:54 -05:00
imcompiling d56251c0b9 Do not ping a user on their cakeday.
build_release / build (push) Successful in 17s
build_latest / build (push) Successful in 1m45s
2025-02-04 22:49:53 -05:00
imcompiling 667a600ec6 Add poetry lock file. 2025-02-04 22:46:51 -05:00
imcompiling 03a94ca6dd Turn on lockFileMaintenance for renovatebot. 2025-02-04 22:45:14 -05:00
imcompiling 9da598e4d9 Add renovatebot json config.
build_latest / build (push) Successful in 2m3s
2025-02-04 17:35:11 -05:00
imcompiling 3a280696ca Need to install specific poetry version, export gets removed in v2.
build_latest / build (push) Successful in 1m41s
build_release / build (push) Successful in 19s
2025-01-19 18:35:38 -05:00
imcompiling 8825afdb46 Missed removing a parameter from buiild_votes_str().
build_latest / build (push) Failing after 29s
build_release / build (push) Failing after 29s
2025-01-19 18:19:51 -05:00
17 changed files with 431 additions and 405 deletions
@@ -5,19 +5,21 @@ on:
branches: branches:
- '*' - '*'
- '!main' - '!main'
paths-ignore:
- "README.md"
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Install Docker - name: Install Docker
uses: https://github.com/papodaca/install-docker-action@v1 uses: https://github.com/papodaca/install-docker-action@v1
- name: Log into container registry - name: Log into container registry
uses: docker/login-action@v2 uses: docker/login-action@v3
with: with:
registry: gitea.cheezers.org registry: gitea.cheezers.org
username: imcompiling username: imcompiling
@@ -3,19 +3,21 @@ name: build_latest
on: on:
push: push:
branches: [main] branches: [main]
paths-ignore:
- "README.md"
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Install Docker - name: Install Docker
uses: https://github.com/papodaca/install-docker-action@v1 uses: https://github.com/papodaca/install-docker-action@v1
- name: Log into container registry - name: Log into container registry
uses: docker/login-action@v2 uses: docker/login-action@v3
with: with:
registry: gitea.cheezers.org registry: gitea.cheezers.org
username: imcompiling username: imcompiling
@@ -9,13 +9,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Install Docker - name: Install Docker
uses: https://github.com/papodaca/install-docker-action@v1 uses: https://github.com/papodaca/install-docker-action@v1
- name: Log into container registry - name: Log into container registry
uses: docker/login-action@v2 uses: docker/login-action@v3
with: with:
registry: gitea.cheezers.org registry: gitea.cheezers.org
username: imcompiling username: imcompiling
-1
View File
@@ -105,7 +105,6 @@ venv/
ENV/ ENV/
env.bak/ env.bak/
venv.bak/ venv.bak/
poetry.lock
# Spyder project settings # Spyder project settings
.spyderproject .spyderproject
+2
View File
@@ -3,6 +3,8 @@
"aiofiles", "aiofiles",
"autofilled", "autofilled",
"blurple", "blurple",
"CAKEDAY",
"cakedays",
"CLANLEADER", "CLANLEADER",
"Dakiny", "Dakiny",
"DISCORDMANAGER", "DISCORDMANAGER",
+2 -2
View File
@@ -1,10 +1,10 @@
FROM python:3.12.3-slim FROM python:3.13.3-slim
# install dependencies # install dependencies
RUN apt-get update && apt-get -y upgrade && apt-get -y install git sqlite3 RUN apt-get update && apt-get -y upgrade && apt-get -y install git sqlite3
# install uv # install uv
COPY --from=ghcr.io/astral-sh/uv:0.6.5 /uv /uvx /bin/ COPY --from=ghcr.io/astral-sh/uv:0.7.5 /uv /uvx /bin/
COPY . /home COPY . /home
+2 -2
View File
@@ -38,8 +38,8 @@ def run() -> None:
bot = commands.Bot(intents=intents) bot = commands.Bot(intents=intents)
# Get the modules of all cogs whose directory structure is ./cogs/<module_name> # Get the modules of all cogs whose directory structure is ./cogs/<module_name>
for folder in os.listdir("cogs"): for folder in os.listdir("dakiny_bot/cogs"):
bot.load_extension(f"cogs.{folder}") bot.load_extension(f"dakiny_bot.cogs.{folder}")
@bot.listen() @bot.listen()
async def on_ready() -> None: async def on_ready() -> None:
+1 -1
View File
@@ -201,7 +201,7 @@ class Election:
election_thread: nextcord.Thread = self.guild.get_thread(self.get_election_info().ThreadId) election_thread: nextcord.Thread = self.guild.get_thread(self.get_election_info().ThreadId)
await election_thread.send(message) await election_thread.send(message)
vote_msg = await election_thread.send( vote_msg = await election_thread.send(
build_votes_str(settings, self.guild), build_votes_str(self.guild),
view=VoteView(self.guild), view=VoteView(self.guild),
) )
+1 -1
View File
@@ -1,6 +1,6 @@
[tool.ruff] [tool.ruff]
# Extend the `pyproject.toml` file in the parent directory... # Extend the `pyproject.toml` file in the parent directory...
extend = "../pyproject.toml" extend = "../../pyproject.toml"
# Exclude a variety of commonly ignored directories. # Exclude a variety of commonly ignored directories.
exclude = ["gitea_webhook.py"] exclude = ["gitea_webhook.py"]
+1 -1
View File
@@ -67,7 +67,7 @@ class VoteSelect(nextcord.ui.StringSelect):
session.execute(stmt) session.execute(stmt)
session.commit() session.commit()
vote_message_str = build_votes_str(settings, interaction.guild) vote_message_str = build_votes_str(interaction.guild)
vote_msg: nextcord.Message = await interaction.channel.fetch_message(vote_msg_id) vote_msg: nextcord.Message = await interaction.channel.fetch_message(vote_msg_id)
await vote_msg.edit(content=vote_message_str) await vote_msg.edit(content=vote_message_str)
+7 -1
View File
@@ -20,6 +20,8 @@ if TYPE_CHECKING:
KANDY = 239547993106284544 KANDY = 239547993106284544
IGNORE_CAKEDAY = [266378407682506754]
class DailyLoop(commands.Cog, name="Daily Loop"): class DailyLoop(commands.Cog, name="Daily Loop"):
"""Class for performing daily functions.""" """Class for performing daily functions."""
@@ -112,7 +114,11 @@ class DailyLoop(commands.Cog, name="Daily Loop"):
announce_channel: nextcord.TextChannel = guild.get_channel(settings.channel_ids.general) announce_channel: nextcord.TextChannel = guild.get_channel(settings.channel_ids.general)
cakedays: list[nextcord.Member] = [ cakedays: list[nextcord.Member] = [
human for human in guild.humans if human.joined_at.month == today.month and human.joined_at.day == today.day human
for human in guild.humans
if human.joined_at.month == today.month
and human.joined_at.day == today.day
and human.id not in IGNORE_CAKEDAY
] ]
for member in cakedays: for member in cakedays:
+1
View File
@@ -0,0 +1 @@
"""Module controls connection to Dakiny bot database."""
+1 -1
View File
@@ -7,7 +7,7 @@ if not Path("database/dakiny.db").exists():
with sqlite3.connect("database/dakiny.db") as con: with sqlite3.connect("database/dakiny.db") as con:
cur = con.cursor() cur = con.cursor()
with Path("database_setup/database.sql", encoding="utf-8").open() as file: with Path("dakiny_bot/database/database.sql").open() as file:
database_script = file.read() database_script = file.read()
cur.executescript(database_script) cur.executescript(database_script)
con.commit() con.commit()
-7
View File
@@ -1,7 +0,0 @@
[tool.ruff]
# Extend the `pyproject.toml` file in the parent directory...
extend = "../pyproject.toml"
[tool.ruff.lint]
# ignore implicit-namespace-package in this directory.
ignore = ["INP001"]
+2 -2
View File
@@ -6,10 +6,10 @@ dependencies = [
"fastapi<1.0.0,>=0.111.0", "fastapi<1.0.0,>=0.111.0",
"nextcord<3.0.0,>=2.6.0", "nextcord<3.0.0,>=2.6.0",
"pandas<3.0.0,>=2.2.2", "pandas<3.0.0,>=2.2.2",
"pytz<2025.0,>=2024.1", "pytz<2025.3,>=2025.2",
"sqlalchemy<3.0.0,>=2.0.30", "sqlalchemy<3.0.0,>=2.0.30",
"aiofiles<24.0.0,>=23.2.1", "aiofiles<24.0.0,>=23.2.1",
"setuptools<71.0.0,>=70.0.0", "setuptools<80.7.2,>=80.7.1",
"dataclass-wizard[yaml]>=0.22.3,<1.0.0", "dataclass-wizard[yaml]>=0.22.3,<1.0.0",
"uvicorn>=0.34.0", "uvicorn>=0.34.0",
] ]
+20
View File
@@ -0,0 +1,20 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"lockFileMaintenance": {
"automerge": true,
"enabled": true
},
"minor": {
"automerge": true,
"automergeType": "branch"
},
"patch": {
"automerge": true,
"automergeType": "branch"
},
"pin": {
"automerge": true,
"automergeType": "branch"
},
"ignoreTests": true
}
Generated
+381 -380
View File
File diff suppressed because it is too large Load Diff