Commit graph

59 commits

Author SHA1 Message Date
LE BERRE Mickael
e364f354b0 fix: mystats username lookup and multi-word name support
All checks were successful
Deploy Bot on NAS / deploy (push) Successful in 25s
- 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 11:56:28 +02:00
LE BERRE Mickael
314483e4f5 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 11:52:04 +02:00
LE BERRE Mickael
1a37ec8838 fix: set dev role IDs for TEA clans + fix leading-zero syntax error
All checks were successful
Deploy Bot on NAS / deploy (push) Successful in 12s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-18 11:01:35 +02:00
LE BERRE Mickael
0d744c8cdc chore: placeholder role IDs for dev environment
All checks were successful
Deploy Bot on NAS / deploy (push) Successful in 25s
IDs serveur dev à renseigner avant déploiement.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-18 10:51:59 +02:00
LE BERRE Mickael
4ecac026b5 fix: replace str | None with Optional[str] for Python 3.9 compat
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:51:26 +02:00
LE BERRE Mickael
85942723ab feat: rebrand RTF→TEA, clan detection via Discord roles
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:51:26 +02:00
ec86776e42 fix: remove container_name conflict between dev and prod, drop obsolete version
All checks were successful
Deploy Bot on NAS / deploy (push) Successful in 17s
2026-04-30 16:30:37 +02:00
01ef1cadcf fix: remove --build, code is volume-mounted
Some checks failed
Deploy Bot on NAS / deploy (push) Failing after 10s
2026-04-30 16:27:11 +02:00
14887625a2 fix: use full docker path for QNAP Container Station
Some checks failed
Deploy Bot on NAS / deploy (push) Failing after 17s
2026-04-30 16:22:25 +02:00
f4dbfba223 ci: re-trigger pipeline
Some checks failed
Deploy Bot on NAS / deploy (push) Failing after 2s
2026-04-30 16:19:26 +02:00
bccf437192 fix: use absolute path /root/.ssh/id_deploy in CI
Some checks failed
Deploy Bot on NAS / deploy (push) Has been cancelled
2026-04-30 16:15:39 +02:00
cd81d299ab swith do ip
Some checks failed
Deploy Bot on NAS / deploy (push) Has been cancelled
2026-04-30 16:12:11 +02:00
e4a38d7853 fix: install rsync et openssh dans le job (runner Alpine)
Some checks failed
Deploy Bot on NAS / deploy (push) Failing after 2s
2026-04-30 16:02:19 +02:00
cdc36dd42b test: trigger deploy pipeline
Some checks failed
Deploy Bot on NAS / deploy (push) Failing after 1s
2026-04-30 16:00:44 +02:00
8932696709 fix: remplace actions/checkout par git clone natif (pas de node.js)
Some checks failed
Deploy Bot on NAS / deploy (push) Failing after 1s
2026-04-30 15:54:16 +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