36b3cfb96fd72c925dac044e537b70dae69e4856
Fenris Wolf unua enmetajxo

Fenris Wolf authored 7 years ago

1) /*
2) 	
3) 	IRC-Bot "Kvasir"
4)     Copyright (C) 2016	Fenris Wolf (fenris@folksprak.org)
5) 	
6)     This program is free software: you can redistribute it and/or modify
7)     it under the terms of the GNU General Public License as published by
8)     the Free Software Foundation, either version 3 of the License, or
9)     (at your option) any later version.
10) 	
11)     This program is distributed in the hope that it will be useful,
12)     but WITHOUT ANY WARRANTY; without even the implied warranty of
13)     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14)     GNU General Public License for more details.
15) 	
16)     You should have received a copy of the GNU General Public License
17)     along with this program.  If not, see <http://www.gnu.org/licenses/>.
18)        
19) */
20) 
21) declare var process;
22) 
23) 
24) /**
25)  * @author fenris
26)  */
27) function cxefajxo() : void
28) {
29) 	function malkonfesado() : void {
30) 		console.info("Kvasir  Copyright (C) 2016  Fenris Wolf");
31) 		console.info("This program comes with ABSOLUTELY NO WARRANTY.");
32) 		console.info("This is free software, and you are welcome to redistribute it");
33) 		console.info("under certain conditions.");
34) 	}
35) 	
36) 	function sekurigi() : void
37) 	{
38) 		process.on
39) 		(
40) 			"uncaughtException",
41) 			function (event : Event) : void
42) 			{
43) 				console.warn("malloka escepto: ", event);
44) 			}
45) 		);
46) 	}
47) 	
48) 	function lancxi(agordoj : Object, fino : ()=>void = function () {}) : void
49) 	{
50) 		let kliento : klaso_kliento = new klaso_kliento_irc(agordoj, agordoj["prokrasto"]);
51) 		kliento.stirado_arangxi(agordoj["administrantoj"]);
52) 		vokado_atendi
53) 		(
54) 			agordoj["kromajxoj"].map
55) 			(
56) 				function (ero : Object) : (preta : ()=>void)=>void
57) 				{
58) 					return (
59) 						function (preta : ()=>void) : void
60) 						{
61) 							console.log("-- sxarganta na '" + ero["vojo"] + "' ...");
62) 							klaso_kromajxo_ekstera.krei
63) 							(
64) 								ero["vojo"],
65) 								function (eraro : Error, kromajxo : klaso_kromajxo_ekstera) : void
66) 								{
67) 									if (eraro != null)
68) 									{
69) 										console.warn(eraro);
70) 									}
71) 									else
72) 									{
73) 										kliento.kromajxo_aldoni(kromajxo, ero["aktiva"]);
74) 									}
Fenris Wolf malgranda gxisdatigajxo

Fenris Wolf authored 7 years ago

75) 									// console.log("-- ... preta");