Skip to content

Commit 8e6ef04

Browse files
committed
🗑️Remove dependabot, update lock, update beta
1 parent 777e87c commit 8e6ef04

File tree

8 files changed

+332
-357
lines changed

8 files changed

+332
-357
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ config.toml
3030
.temp/
3131

3232
# Testing Only
33-
modules/beta.py
33+
src/modules/beta.py
3434
_test.py
3535
scripts/
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from examples.beta.base import *
5+
from beta_base import *
66

77

88
class BetaTest(BetaCog):

pyproject.toml

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,12 @@ authors = [{ name = "Aluerie", email = "aluerie@gmail.com" }]
66
readme = "README.md"
77
requires-python = ">=3.12"
88
dependencies = [
9-
"aiohttp==3.13.2",
10-
"asyncpg==0.30.0",
11-
"click==8.3.0",
12-
"discord-py[speed]==2.6.4",
13-
"orjson==3.11.4",
14-
"steamio>=1.1.3",
9+
"asyncpg",
10+
"click",
11+
"discord-py[speed]",
12+
"steamio",
1513
"twitchio[starlette]",
16-
"uvloop==0.22.1 ; sys_platform == 'linux'",
14+
"uvloop; sys_platform == 'linux'",
1715
]
1816

1917
[tool.uv.sources]
@@ -22,28 +20,16 @@ steamio = { git = "https://github.com/Aluerie/steam.py", rev = "introduce-ext.do
2220

2321
[dependency-groups]
2422
dev = [
25-
"asyncpg-stubs>=0.30.2",
26-
"ipykernel>=7.1.0",
27-
"pyright>=1.1.407",
23+
"asyncpg-stubs",
24+
"ipykernel",
25+
"pyright",
2826
]
2927

3028
[[tool.uv.index]]
3129
name = "umbra"
3230
url = "https://about.abstractumbra.dev/pip/"
3331
explicit = true
3432

35-
[tool.black]
36-
# I use ruff over it
37-
line-length = 120
38-
target-version = ["py312"]
39-
40-
[tool.isort]
41-
# I use ruff over it
42-
profile = "black"
43-
combine_as_imports = true
44-
combine_star = true
45-
line_length = 120
46-
4733
[tool.pyright]
4834
pythonVersion = "3.12"
4935
typeCheckingMode = "strict" # let's enable the default max setting and go down from here.
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
"""
2+
Base class for BetaCog for `modules.beta.py`.
3+
4+
It's a silly way to quickly beta-test some things, but this way
5+
`modules.beta.py` can be done in the least amount of lines as all the imports and chores
6+
are handled in this base file instead.
7+
8+
For an example of how `modules.beta.py` looks - you can look in `examples` folder.
9+
"""
10+
111
# pyright: basic
212

313
from __future__ import annotations
@@ -12,8 +22,8 @@
1222
import twitchio
1323
from twitchio.ext import commands
1424

15-
from core import IreDevComponent, ireloop
1625
from config import config
26+
from core import IreDevComponent, ireloop
1727
from utils import const, errors
1828

1929
if TYPE_CHECKING:

src/modules/beta.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/modules/public/dota_rp_flow/component.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,10 +1567,10 @@ async def debug_announce_activity_change(self, friend: Friend) -> None:
15671567

15681568
@ireloop(count=1)
15691569
async def tuesday_problems(self) -> None:
1570-
"""A crutch to try to solve infamous Tuesday problems.
1570+
"""A crutch to try to solve infamous Tuesday Steam maintenance problems.
15711571
15721572
When steam crashes - it always is a big problem for the bot;
1573-
It doesn't ever properly reconnect on its own.
1573+
It doesn't ever properly reconnect or restart on its own.
15741574
15751575
Let's put a crutch to simply restart the bot if that happens.
15761576
"""
@@ -1579,4 +1579,7 @@ async def tuesday_problems(self) -> None:
15791579
await self.bot.dota.wait_until_gc_ready()
15801580
except TimeoutError:
15811581
log.warning("🔴 Failed to wait for Dota 2 Game Coordinator to get ready - restarting the bot. 🔴")
1582-
await asyncio.create_subprocess_shell("sudo systemctl restart irebot")
1582+
try:
1583+
await asyncio.create_subprocess_shell("sudo systemctl restart irebot")
1584+
except Exception:
1585+
log.exception("Failed to Restart the bot's process", stack_info=True)

uv.lock

Lines changed: 305 additions & 293 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)