This repository was archived by the owner on Jun 12, 2020. It is now read-only.
Open
Conversation
Some change and improvements
Listen `ready` event once, Fix ES-Community#3
…ubscribe Feature channel subscribe
Xstoudi
suggested changes
Aug 5, 2018
Member
Xstoudi
left a comment
There was a problem hiding this comment.
Quelques remarques sur la typo.
Petite suggestion aussi : pas la peine de faire une commande de dé-signalement pour les modos : on se débrouille avec le rôle je pense que ça suffit :)
src/commands/report.js
Outdated
| } | ||
| const userMatch = userString.match(/<@!?(\d{18})>/) | ||
| if (userMatch === null) { | ||
| message.author.send(`Vous devez spécifier un utilisateur en le référançant avec \`@username\` pour le signaler.`) |
src/commands/report.js
Outdated
| message.guild.members | ||
| .filter(m => m.roles.find('name', config.roles.moderator) !== null) | ||
| .array().forEach(m => | ||
| m.send(`[SIGNALEMENT] \`${message.author.tag}\` a signalé \`${reportedUser.user.tag}\` pour la raison suivante :\n${reason.join(' ')}`) |
Member
There was a problem hiding this comment.
Tu peux envoyer dans le channel mentors et tu peux nous faire un ptit rich embed des familles si t'es déter'.
Member
Author
There was a problem hiding this comment.
Peut-être à l'occas pour l'embed
src/commands/report.js
Outdated
| args: [userString, ...args] | ||
| }) => { | ||
| if (message.member.roles.find('name', config.roles.moderator) === null) { | ||
| message.author.send(`Vous devez être un mentor pour déblocker un utilisateur.`) |
src/commands/report.js
Outdated
| } | ||
| const userMatch = userString.match(/<@!?(\d{18})>/) | ||
| if (userMatch === null) { | ||
| message.author.send(`Vous devez spécifier un utilisateur en le référançant avec \`@username\`.`) |
Member
There was a problem hiding this comment.
pareil que plus haut, *référençant
src/commands/report.js
Outdated
| } | ||
| const reportedUser = message.guild.members.find('id', userMatch[1]) | ||
| if (reportedUser === null) { | ||
| message.author.send(`L'utilisateur avec l'id \`${userMatch[1]}\` n'a pas été trouvé dans la liste de membre`) |
Member
Author
Member
|
Deux remarques encore :
Le tout bien évidemment pour savoir sur qui taper pour les potentiels signalement abusifs, pour savoir où chercher et pour savoir quoi chercher :) (Oui, ça fait trois en fait) Merci @Westixy |
Member
Author
Member
|
Pour moi c'est ok |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Implémentation possible de la commande report et unlock suite a l'issue #10
rolesdans la configurationSignaléempêchant l'écriture sur le serveurL'implémentation est bien entendue a discuter