Commit graph

56 commits

Author SHA1 Message Date
LE BERRE Mickael
6621599fc6 i18n: translate all French comments, docstrings and logs to English
All checks were successful
Deploy Bot on NAS / deploy (push) Successful in 29s
discord.py's built-in !help command exposes cog docstrings directly to
Discord members — leaving them in French made the output partially French.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-01 13:56:36 +02:00
LE BERRE Mickael
ca8d761293 docs: update CLAUDE.md community description to TEA rebrand
All checks were successful
Deploy Bot on NAS / deploy (push) Successful in 30s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-18 16:25:09 +02:00
LE BERRE Mickael
5cfa8db270 docs: explicit comment on StrictHostKeyChecking=no in deploy workflow
All checks were successful
Deploy Bot on NAS / deploy (push) Successful in 26s
Runner Alpine stateless, pas de known_hosts persistant.
Cible fixe sur LAN interne (192.168.1.208) — risque MITM inexistant.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-18 16:17:30 +02:00
LE BERRE Mickael
20b86144b4 fix: mystats username lookup and multi-word name support
All checks were successful
Deploy Bot on NAS / deploy (push) Successful in 28s
- Résolution du nom via find_user_by_name avant get_user_all_pbs
  (l'ancien code passait le nom en guise de discord_id → aucun résultat)
- Affichage du nom de la cible dans le titre de l'embed
- * pour capturer les noms avec espaces

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-18 12:06:59 +02:00
LE BERRE Mickael
57cd2517ad fix: support multi-word usernames in pb lookup commands
Sans le *, discord.py tronquait les noms avec espaces au premier mot.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-18 12:06:59 +02:00
LE BERRE Mickael
cebd1f2e0a fix: replace str | None with Optional[str] for Python 3.9 compat
All checks were successful
Deploy Bot on NAS / deploy (push) Successful in 16s
str | None union syntax requires Python 3.10+, bot runs on 3.9-slim.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-18 10:47:20 +02:00
LE BERRE Mickael
acabc7d409 feat: rebrand RTF→TEA, clan detection via Discord roles
All checks were successful
Deploy Bot on NAS / deploy (push) Successful in 26s
Replaces display-name prefix parsing ([RTF]/[RTFC]/[RTFR]) with
Discord role-based clan detection (TEAI/TEAF/TEAC/TEACO).

- config: new CLAN_CONFIG with 4 TEA clans, CLAN_ROLE_IDS, CLAN_MIGRATION
- helpers: get_user_clan() replaced by get_clan_from_member()
- DatabaseManager: adds clan column on startup, auto-migrates existing
  records from old username prefixes, filters leaderboard by clan column
- pb_handler: detects clan from roles on submission, passes it to DB
- leaderboard_handler: reads clan from DB column instead of username
- top10: new commands !teai*/!teaf*/!teac*/!teaco* (removes !rtf*)
- guide: updated command list and bot title

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-18 10:38:01 +02:00
0cc1a4139d chore: add .gitignore (was only on dev)
All checks were successful
Deploy Bot on NAS / deploy (push) Successful in 23s
2026-04-30 16:54:05 +02:00
49ffd17528 chore: remove old GitHub Actions workflow
All checks were successful
Deploy Bot on NAS / deploy (push) Successful in 26s
2026-04-30 16:47:49 +02:00
0c46ef5a81 docs: update CLAUDE.md with CI/CD lessons, update README deployment section
All checks were successful
Deploy Bot on NAS / deploy (push) Successful in 28s
2026-04-30 16:46:57 +02:00
66cabe2fec fix: exclude __pycache__ and .github from rsync
All checks were successful
Deploy Bot on NAS / deploy (push) Successful in 24s
2026-04-30 16:44:36 +02:00
cf6f68c31c fix: sync CI/CD fixes from dev to main
Some checks failed
Deploy Bot on NAS / deploy (push) Failing after 2s
2026-04-30 16:42:57 +02:00
6fc1f39b86 fix: user NAS Elewyn au lieu de admin
Some checks failed
Deploy Bot on NAS / deploy (push) Failing after 1s
2026-04-30 15:48:45 +02:00
5adccfa404 changement afficage not user_data de id a displayname
Some checks failed
Deploy Bot on NAS / deploy (push) Failing after 0s
2025-08-28 15:55:08 +02:00
c7e8ab62be fix encodage 2025-08-28 15:32:20 +02:00
d18e148cf2 fix des dossiers 2025-08-28 15:27:38 +02:00
35eba9fae0 clean de l'install 2025-08-28 15:22:58 +02:00
c61a287492 clean de l'install 2025-08-28 15:22:18 +02:00
3cc656ee82 clean de l'install 2025-08-28 15:21:11 +02:00
9a3c55a5a8 Ajout chemin absolu dans deploy 2025-08-28 15:10:43 +02:00
867a9ef36d Forcage encodage utf-8 2025-08-28 14:31:11 +02:00
35b3f28ed1 Merge branch 'main' of https://github.com/ArcElewyn/Discord 2025-08-28 14:24:17 +02:00
e88d6245d0 Fix encodage 2025-08-28 14:24:06 +02:00
Mickaël
1177f770c5
Update deploy.yml 2025-08-28 14:13:22 +02:00
Mickaël
49bfe40507
Update deploy.yml 2025-08-28 14:12:15 +02:00
Mickaël
43581a42b7
correction du if dans Set deployment path 2025-08-28 14:11:08 +02:00
Mickaël
c391e91149
Update deploy.yml 2025-08-28 14:09:36 +02:00
Mickaël
c5e09243fa
Update deploy.yml 2025-08-28 14:07:53 +02:00
Mickaël
5226a5102c
Update deploy.yml 2025-08-28 14:06:33 +02:00
Mickaël
8ba2e3a776
Update deploy.yml 2025-08-28 14:05:06 +02:00
71a1222e5e fix ci/cd 2025-08-28 13:57:15 +02:00
035027a593 ajout ci/cd 2025-08-28 13:56:21 +02:00
f0a4966d50 Merge branch 'main' of https://github.com/ArcElewyn/Discord 2025-08-28 13:53:36 +02:00
d44eb03844 ajout ci/cd 2025-08-28 13:53:21 +02:00
Mickaël
2baca2d503
Delete .env 2025-08-28 12:36:44 +02:00
2276b98227 fix du ciblage de l'user par id au lieu de displayname 2025-08-28 12:25:48 +02:00
093b190f08 update du bot pour illustrer la prod 2025-08-26 20:07:35 +02:00
1b02dd8b22 nettoyage et standardisation 2025-08-26 19:35:54 +02:00
4533180ef0 syncro modif prod 2025-08-26 15:02:34 +02:00
d1540c816d Modif calcul et affichage mercy 2025-08-25 18:21:50 +02:00
c2f23a7e73 passage des fonctions en async 2025-08-25 18:11:22 +02:00
Mickaël
569526a08c
Update bot.py 2025-08-24 10:21:54 +02:00
1b50a955c8 Added mercy counter 2025-08-23 11:23:47 +02:00
mleberre
0dbd80c24e Reworked README 2025-08-22 15:30:16 +02:00
mleberre
768c4bc3f3 Refactor: ajout des cogs et handlers 2025-08-22 15:25:34 +02:00
Mickaël
b87effe810
Update RTF.py
Ajout gestion suffixe B M K, ajout des diminutif de difficultés
2025-08-20 11:51:18 +02:00
Mickaël
5538426bdd
Update RTF.py
changed the username chech from name to displayname
2025-08-14 10:50:27 +02:00
Mickaël
831c727891
Update RTF.py 2025-08-14 10:04:51 +02:00
Mickaël
e32176af26
Update README.md
Translation
2025-08-13 15:13:06 +02:00
Mickaël
d177118a41
Rename RFT.py to RTF.py 2025-08-13 14:56:39 +02:00