Skip to content

Commit 999583b

Browse files
committed
Forget to remove the old translations...
1 parent fbf9780 commit 999583b

File tree

108 files changed

+887
-22709
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+887
-22709
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ repos:
3232
rev: 0.8.9
3333
hooks:
3434
- id: pip-compile
35-
name: pip-compile requirements.in
36-
args: [requirements.txt, -o, requirements.txt]
35+
name: pip-compile requirements.txt
36+
args: [pyproject.toml, -o, requirements.txt]
3737
- id: pip-compile
38-
name: pip-compile requirements-dev.in
39-
args: [requirements-dev.txt, -o, requirements-dev.txt]
38+
name: pip-compile requirements-dev.txt
39+
args: [--group, dev, -o, requirements-dev.txt]
4040
files: ^requirements-dev\.(in|txt)$
4141
- id: uv-lock

bot/cogs/accountage/command/accountage.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
import datetime
55
from typing import TYPE_CHECKING
66

7-
from bot.ext import Context, commands
8-
from bot.translations import Response
7+
from bot.ext import Context, Response, commands
98
from bot.utils import StringTools
109

1110
from .translations import Translations

bot/cogs/admin/commands/admin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
from pathlib import Path
99
from typing import TYPE_CHECKING
1010

11-
from bot.ext import Context, commands
12-
from bot.translations import Response
11+
from bot.ext import Context, Response, commands
1312
from bot.utils import Role, SessionsCaches
1413

1514
from .translations import Translations

bot/cogs/afk/commands/afk.py

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,31 @@
44
from datetime import datetime
55
from typing import TYPE_CHECKING
66

7-
from bot.ext import Context, commands
7+
from bot.ext import Context, Response, commands
88
from bot.ext.named_tuples import RAfkNamedTuple
99
from bot.models import Status
10-
from bot.translations import Response, afks
1110

1211
from .translations import Translations
1312

1413
if TYPE_CHECKING:
1514
from bot.bot import Gorenmu
1615

17-
afk_alias = [s for s in afks.afks if s != "afk"]
16+
afk_alias = [
17+
"read",
18+
"brb",
19+
"eat",
20+
"food",
21+
"play",
22+
"game",
23+
"sleep",
24+
"night",
25+
"study",
26+
"art",
27+
"watch",
28+
"shower",
29+
"code",
30+
"work",
31+
]
1832

1933

2034
class AFKCmd(commands.CustomComponent):

bot/cogs/afk/commands/isafk.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33

44
from typing import TYPE_CHECKING
55

6-
from bot.ext import Context, commands
6+
from bot.ext import Context, Response, commands
77
from bot.models import User
8-
from bot.translations import Response
98
from bot.utils import StringTools
109

1110
if TYPE_CHECKING:

bot/cogs/afk/commands/rafk.py

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,33 @@
33

44
from typing import TYPE_CHECKING
55

6-
from bot.ext import Context, commands
6+
from bot.ext import Context, Response, commands
77
from bot.models import Status
8-
from bot.translations import Response, afks
98

109
from .translations import Translations
1110

1211
if TYPE_CHECKING:
1312
from bot.bot import Gorenmu
1413

15-
rafk_alias = [f"r{s}" for s in afks.afks if s != "afk"]
14+
rafk_alias = [
15+
f"r{s}"
16+
for s in [
17+
"read",
18+
"brb",
19+
"eat",
20+
"food",
21+
"play",
22+
"game",
23+
"sleep",
24+
"night",
25+
"study",
26+
"art",
27+
"watch",
28+
"shower",
29+
"code",
30+
"work",
31+
]
32+
]
1633

1734

1835
class RAfkCmd(commands.CustomComponent):

bot/cogs/alias/command/alias.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,15 @@
88

99
from twitchio.ext.commands import GuardFailure
1010

11-
from bot.ext import Command, Context, commands
11+
from bot.ext import Command, Context, Response, commands
1212
from bot.models import Alias, User
13-
from bot.translations import BaseTranslations, Response
1413
from bot.utils import SessionsCaches, UploadThings
1514

1615
from .translations import Translations
1716

1817
if TYPE_CHECKING:
1918
from bot.bot import Gorenmu
2019

21-
TAlias = BaseTranslations.Alias() # NOQA
22-
2320

2421
class ParsedCommand(NamedTuple):
2522
command: commands.Command | None

bot/cogs/annotations/command/annotations.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33

44
from typing import TYPE_CHECKING
55

6-
from bot.ext import Context, commands
6+
from bot.ext import Context, Response, commands
77
from bot.models import Annotation
8-
from bot.translations import Response
98
from bot.utils import StringTools
109

1110
from .translations import Translations

bot/cogs/botinfo/command/botinfo.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
from datetime import UTC, datetime
55
from typing import TYPE_CHECKING
66

7-
from bot.ext import Context, commands
8-
from bot.translations import Response
7+
from bot.ext import Context, Response, commands
98

109
from .translations import Translations
1110

bot/cogs/bug/command/bug.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33

44
from typing import TYPE_CHECKING
55

6-
from bot.ext import Context, commands
6+
from bot.ext import Context, Response, commands
77
from bot.models import Bug
8-
from bot.translations import Response
98
from bot.utils import DiscordWebHook, SessionsCaches
109

1110
from .translations import Translations

0 commit comments

Comments
 (0)