Skip to content

Commit

Permalink
remove broken features, changelog needs reimpl with #6
Browse files Browse the repository at this point in the history
  • Loading branch information
jbpratt committed Aug 23, 2020
1 parent 61d99d8 commit 94613c2
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 74 deletions.
34 changes: 0 additions & 34 deletions changelog.go

This file was deleted.

5 changes: 0 additions & 5 deletions changelog_test.go

This file was deleted.

33 changes: 0 additions & 33 deletions commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,39 +302,6 @@ func (b *bot) printTopStreams(m dggchat.Message, s *dggchat.Session) {
}
}

// !changelog or !changes shows recent commit messages to chat-gui
func (b *bot) printRecentChanges(m dggchat.Message, s *dggchat.Session) {
if !strings.HasPrefix(m.Message, "!change") {
return
}

chngs, err := getLatestChanges(chatPath, 3)
if err != nil {
log.Printf("%v\n", err)
b.sendMessageDedupe("error getting latest changes", s)
return
}

out := "Latest commits:"
for _, chng := range chngs {
out += fmt.Sprintf(" %q", chng)
}
b.sendMessageDedupe(out, s)
}

// !commands shows all available static commands
func (b *bot) printCommands(m dggchat.Message, s *dggchat.Session) {
if !strings.HasPrefix(m.Message, "!commands") {
return
}

var out string
for _, cmd := range commands {
out += fmt.Sprintf("%s ", cmd)
}
b.sendMessageDedupe(out, s)
}

func parseModifiers(s []string) (streamModifier, error) {
var sm streamModifier

Expand Down
2 changes: 0 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ func main() {
b.addCommand,
b.mute,
b.printTopStreams,
b.printRecentChanges,
b.printCommands,
b.modifyStream,
b.checkAT,
b.embedLink,
Expand Down

0 comments on commit 94613c2

Please sign in to comment.