Skip to content

Commit

Permalink
Merge pull request #2 from jspc/message_dest_routing
Browse files Browse the repository at this point in the history
Message dest routing
  • Loading branch information
jspc authored Jun 20, 2021
2 parents 62ff961 + e8813f3 commit c8cf16f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (b *Bot) showSchedule(_, channel string, _ []string) (err error) {
table.Render()

for _, line := range strings.Split(sb.String(), "\n") {
b.bottom.Client.Cmd.Message(Chan, line)
b.bottom.Client.Cmd.Message(channel, line)
}

b.bottom.Client.Cmd.Messagef(channel, "(as far as I know, it's now %s)", time.Now().In(TZ).String())
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.16

require (
github.com/BurntSushi/toml v0.3.1
github.com/jspc/bottom v1.1.0
github.com/jspc/bottom v1.1.1
github.com/lrstanley/girc v0.0.0-20210611213246-771323f1624b
github.com/olekukonko/tablewriter v0.0.5
github.com/robfig/cron/v3 v3.0.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/jspc/bottom v1.1.0 h1:Ft9qsK4WWWnmIH++5Cu/tdATuH8fmXKyIpVEPOkbX+o=
github.com/jspc/bottom v1.1.0/go.mod h1:ZT+gMOUb046Xd8TjH16FlqGQcaj/EccWJ4UJax3lXi8=
github.com/jspc/bottom v1.1.1 h1:m+yn8grXOS+cRfRuVQsL3SGe7AQfOrZbsICJ2VkVnW8=
github.com/jspc/bottom v1.1.1/go.mod h1:ZT+gMOUb046Xd8TjH16FlqGQcaj/EccWJ4UJax3lXi8=
github.com/lrstanley/girc v0.0.0-20210611213246-771323f1624b h1:jrLvME7VuLW6NRysbiZtenTB9QcNlR9RPKK4LFfZn60=
github.com/lrstanley/girc v0.0.0-20210611213246-771323f1624b/go.mod h1:liX5MxHPrwgHaKowoLkYGwbXfYABh1jbZ6FpElbGF1I=
github.com/mattn/go-runewidth v0.0.9 h1:Lm995f3rfxdpd6TSmuVCHVb/QhupuXlYr8sCI/QdE+0=
Expand Down

0 comments on commit c8cf16f

Please sign in to comment.