* /nick <nouveau nick>
* Modifie le pseudo courant
*/
-euphorik.Commandes = function(client, pageMinichat, util, formateur) {
+euphorik.Commandes = function(client, pageMinichat, util, formater) {
var thisCommandes = this;
this.client = client;
this.pageMinichat = pageMinichat;
this.util = util;
- this.formateur = formateur;
+ this.formater = formater;
// construction du texte d'aide (liste des commandes) de manière statique
this.texteAide = "<div id=\"aideCommandes\"><h1>Commandes</h1><ul>";
objectEach(
euphorik.Commandes.liste,
function(nom, commande) {
- thisCommandes.texteAide += "<li><span class=\"usage\">" + thisCommandes.formateur.traitementComplet(commande.usage) + "</span> : " + thisCommandes.formateur.traitementComplet(commande.description) + "</li>";
+ thisCommandes.texteAide += "<li><span class=\"usage\">" + thisCommandes.formater.traitementComplet(commande.usage) + "</span> : " + thisCommandes.formater.traitementComplet(commande.description) + "</li>";
}
);
this.texteAide += "</ul></div>";
pageMinichat.envoyerMessage("C'est pas faux");
return [euphorik.Commandes.statut.ok, ''];
}
+ },
+ "osef" : {
+ description : "Envoie le message \"On s'en fout !\"",
+ usage : "/osef",
+ exec : function(args, client, pageMinichat) {
+ pageMinichat.envoyerMessage("On s'en fout !");
+ return [euphorik.Commandes.statut.ok, ''];
+ }
}
};
}
// commandes spéciales pour afficher l'aide : "?", "h", "help", "aide"
if (nomCommande === "?" || nomCommande === "h" || nomCommande === "help" || nomCommande === "aide") {
- this.util.messageDialogue(
+ this.util.messageDialog(
this.texteAide,
euphorik.Util.messageType.informatif,
{"fermer" : function(){}},