about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenny Morrison <benmorrison@ttm.sh>2019-03-17 02:02:41 -0400
committerBenny Morrison <benmorrison@ttm.sh>2019-03-17 02:02:41 -0400
commiteb48e13e5791488d1f291ef7bcffffc2440b8c87 (patch)
treefa61c0dc8425f38ae172c57a4a10a649a389803e
parent24ec17ab17eaa652c9718a1c7804fa976ae7eb82 (diff)
downloadgoofbot-eb48e13e5791488d1f291ef7bcffffc2440b8c87.tar.gz
removed output variable, set to os.Stdout constant
-rw-r--r--config.json4
-rw-r--r--main.go5
2 files changed, 4 insertions, 5 deletions
diff --git a/config.json b/config.json
index e6954d2..8de5649 100644
--- a/config.json
+++ b/config.json
@@ -2,10 +2,10 @@
     "owner": "ahriman",
     "chan": "#goofbot",
     "server": "irc.tilde.chat",
-    "port": "6697",
+    "port": 6697,
     "nick": "goofbot",
     "user": "goofbot",
     "name": "Goofus McBotus",
     "out": "os.Stdout",
-    "ssl": "true"
+    "ssl": true
 }
diff --git a/main.go b/main.go
index bea20ed..2eee1ce 100644
--- a/main.go
+++ b/main.go
@@ -3,9 +3,9 @@ package main
 import (
 	"bytes"
 	"encoding/json"
-	"io"
 	"io/ioutil"
 	"log"
+	"os"
 	"os/exec"
 	"strings"
 	"time"
@@ -27,7 +27,6 @@ type Conf struct {
 	Nick   string
 	User   string
 	Name   string
-	Out    io.Writer
 	SSL    bool
 }
 
@@ -48,7 +47,7 @@ func main() {
 		Nick:   conf.Nick,
 		User:   conf.User,
 		Name:   conf.Name,
-		Out:    conf.Out,
+		Out:    os.Stdout,
 		SSL:    conf.SSL,
 	})
 
pleters.c?id=fd218ac3e443650a7b310d4f8cde758f08c0ed8c'>^
dcc2123e ^
71178b36 ^





41fe8c22 ^
dcc2123e ^





41fe8c22 ^


71178b36 ^
dcc2123e ^
41fe8c22 ^


71178b36 ^
41fe8c22 ^
71178b36 ^








1075f07f ^

71178b36 ^
1075f07f ^
71178b36 ^


41fe8c22 ^
41fe8c22 ^

bfdc3b88 ^
71178b36 ^
bfdc3b88 ^
71178b36 ^

bfdc3b88 ^


71178b36 ^

bfdc3b88 ^
71178b36 ^


bfdc3b88 ^

2f432a94 ^
71178b36 ^
2f432a94 ^
71178b36 ^

2f432a94 ^


71178b36 ^




2f432a94 ^


dcc2123e ^













6b830277 ^
41fe8c22 ^


71178b36 ^







6b830277 ^
71178b36 ^
dcc2123e ^
71178b36 ^



41fe8c22 ^
71178b36 ^


41fe8c22 ^
71178b36 ^
41fe8c22 ^
dcc2123e ^








6b830277 ^
dcc2123e ^














41fe8c22 ^





71178b36 ^











41fe8c22 ^
72f94036 ^
71178b36 ^
41fe8c22 ^



71178b36 ^
57ebb7cf ^


41fe8c22 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213