git.schokokeks.org
Repositories
Help
Report an Issue
kvasir.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
f7fabf5
Branches
Tags
master
kvasir.git
kromajxoj
ehxado.js
malgranda gxisdatigajxo
Fenris Wolf
commited
f7fabf5
at 2016-05-22 13:25:17
ehxado.js
Blame
History
Raw
/* IRC-Bot "Kvasir" Copyright (C) 2016 Fenris Wolf (fenris@folksprak.org) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ { "identigilo": "ehxado", "nomo": "Mesagx-Ehxado", "auxtoro": "fenris", "priskribo": "ripetas skribitajn mesagxojn", "uzo": "(nenia speciala sintakso)", "reagi": function (enigo_kruda, respondi) { switch (enigo_kruda["tipo"]) { case "mesagxo": { respondi ( { "tipo": "mesagxo", "parametroj": { "celo": enigo_kruda["parametroj"]["fonto"], "alparolato": enigo_kruda["parametroj"]["sendinto"], "enhavo": "vi estas skribinta la jenan mesagxon: „" + enigo_kruda["parametroj"]["enhavo"] + "“", } } ); break; } default: { // console.warn("netraktata enigo '" + enigo_kruda["tipo"] + "'"); break; } } } }