Commit deb50f19 authored by Morgân von Brylân's avatar Morgân von Brylân

Corrigé la commande ">imite".

parent 226f6134
......@@ -1841,8 +1841,9 @@ function c_imite(msg, prm)
msg.reply(`Il faut être sur un serveur, ${insulte(msg.author)} !`).catch(error);
else
{
const cible = getMemer(msg.guild, prm.split(" ", 1)[0]),
message = prm.length > (somme.length + 1) ? prm.substr(somme.length + 1).trim() : null;
const idCible = prm.split(" ", 1)[0],
message = prm.length > (idCible.length + 1) ? prm.substr(idCible.length + 1).trim() : null,
cible = getMember(msg.guild, idCible);
if(!cible)
msg.channel.send(`Tu es censé·e mentionner quelqu'un, patate !`).catch(error);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment