@@ -302,39 +302,6 @@ func (b *bot) printTopStreams(m dggchat.Message, s *dggchat.Session) {
302
302
}
303
303
}
304
304
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
-
338
305
func parseModifiers (s []string ) (streamModifier , error ) {
339
306
var sm streamModifier
340
307
0 commit comments