Skip to content

Commit 94613c2

Browse files
committed
remove broken features, changelog needs reimpl with #6
1 parent 61d99d8 commit 94613c2

File tree

4 files changed

+0
-74
lines changed

4 files changed

+0
-74
lines changed

changelog.go

-34
This file was deleted.

changelog_test.go

-5
This file was deleted.

commands.go

-33
Original file line numberDiff line numberDiff line change
@@ -302,39 +302,6 @@ func (b *bot) printTopStreams(m dggchat.Message, s *dggchat.Session) {
302302
}
303303
}
304304

305-
// !changelog or !changes shows recent commit messages to chat-gui
306-
func (b *bot) printRecentChanges(m dggchat.Message, s *dggchat.Session) {
307-
if !strings.HasPrefix(m.Message, "!change") {
308-
return
309-
}
310-
311-
chngs, err := getLatestChanges(chatPath, 3)
312-
if err != nil {
313-
log.Printf("%v\n", err)
314-
b.sendMessageDedupe("error getting latest changes", s)
315-
return
316-
}
317-
318-
out := "Latest commits:"
319-
for _, chng := range chngs {
320-
out += fmt.Sprintf(" %q", chng)
321-
}
322-
b.sendMessageDedupe(out, s)
323-
}
324-
325-
// !commands shows all available static commands
326-
func (b *bot) printCommands(m dggchat.Message, s *dggchat.Session) {
327-
if !strings.HasPrefix(m.Message, "!commands") {
328-
return
329-
}
330-
331-
var out string
332-
for _, cmd := range commands {
333-
out += fmt.Sprintf("%s ", cmd)
334-
}
335-
b.sendMessageDedupe(out, s)
336-
}
337-
338305
func parseModifiers(s []string) (streamModifier, error) {
339306
var sm streamModifier
340307

main.go

-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ func main() {
6666
b.addCommand,
6767
b.mute,
6868
b.printTopStreams,
69-
b.printRecentChanges,
70-
b.printCommands,
7169
b.modifyStream,
7270
b.checkAT,
7371
b.embedLink,

0 commit comments

Comments
 (0)