Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 2 files changed
  • 0 comments
  • 1 contributor
6  docs/services_devel.rst
Source Rendered
@@ -60,7 +60,7 @@ The possible ``in`` messages.
60 60
             "sender": "",
61 61
             "channel": "",
62 62
             "message": ""
63  
-            }
  63
+        }
64 64
 
65 65
 .. js:data:: "part"
66 66
 
@@ -69,7 +69,7 @@ The possible ``in`` messages.
69 69
         "data": {
70 70
             "sender": "",
71 71
             "channel": ""
72  
-            }
  72
+        }
73 73
 
74 74
 .. js:data:: "quit"
75 75
 
@@ -77,7 +77,7 @@ The possible ``in`` messages.
77 77
 
78 78
         "data": {
79 79
             "sender": ""
80  
-            }
  80
+        }
81 81
 
82 82
 Out messages
83 83
 ~~~~~~~~~~~~
20  services/admin.js
... ...
@@ -1,4 +1,3 @@
1  
-var sys = require('sys');
2 1
 var exec = require('child_process').exec;
3 2
 var api = require('zenircbot-api')
4 3
 var admin_config = api.load_config('./admin.json');
@@ -11,7 +10,7 @@ var service_regex = /(\w+) (.*)/;
11 10
 var forever = require('forever');
12 11
 var services = {};
13 12
 
14  
-function puts(error, stdout, stderr) { sys.puts(stdout); }
  13
+function puts(error, stdout, stderr) { console.log(stdout); }
15 14
 
16 15
 language_map = {'js': 'node',
17 16
                 'py': 'python',
@@ -19,14 +18,15 @@ language_map = {'js': 'node',
19 18
 
20 19
 admin_config.services.forEach(start_service)
21 20
 
22  
-zen.register_commands("admin.js", [{name: "start <service>",
23  
-                                    description: "This will start the service mentioned."},
24  
-                                   {name: "restart <service>",
25  
-                                    description: "This will restart the service mentioned if it was started via admin.js."},
26  
-                                   {name: "stop <service>",
27  
-                                    description: "This will stop the service mentioned if it was started via admin.js."},
28  
-                                   {name: "git pull",
29  
-                                    description: "This will pull down the code for the zenircbot."}]);
  21
+zen.register_commands("admin.js", [
  22
+    {name: "start <service>",
  23
+     description: "This will start the service mentioned."},
  24
+    {name: "restart <service>",
  25
+     description: "This will restart the service mentioned if it was started via admin.js."},
  26
+    {name: "stop <service>",
  27
+     description: "This will stop the service mentioned if it was started via admin.js."},
  28
+    {name: "git pull",
  29
+     description: "This will pull down the code for the zenircbot."}]);
30 30
 
31 31
 sub.subscribe('in');
32 32
 sub.on('message', function(channel, message){

No commit comments for this range

Something went wrong with that request. Please try again.