mirror of
https://github.com/diamondburned/cchat-discord.git
synced 2024-11-25 23:52:48 +00:00
Bumped cchat
This commit is contained in:
parent
360b34de2a
commit
af912db554
2
go.mod
2
go.mod
|
@ -4,7 +4,7 @@ go 1.14
|
|||
|
||||
require (
|
||||
github.com/diamondburned/arikawa v0.12.4
|
||||
github.com/diamondburned/cchat v0.0.45
|
||||
github.com/diamondburned/cchat v0.0.46
|
||||
github.com/diamondburned/ningen v0.1.1-0.20200717072304-e483f86c08e6
|
||||
github.com/dustin/go-humanize v1.0.0
|
||||
github.com/go-test/deep v1.0.6
|
||||
|
|
2
go.sum
2
go.sum
|
@ -55,6 +55,8 @@ github.com/diamondburned/cchat v0.0.44 h1:NmXw4bU3nCPxxKYK6K5LjRjNMp15uXfcKVEt1K
|
|||
github.com/diamondburned/cchat v0.0.44/go.mod h1:+zXktogE45A0om4fT6B/z6Ii7FXNafjxsNspI0rlhbU=
|
||||
github.com/diamondburned/cchat v0.0.45 h1:HMVSKx1h6lh2OenWaBTvMSK531hWaXAW7I0tKZepYug=
|
||||
github.com/diamondburned/cchat v0.0.45/go.mod h1:+zXktogE45A0om4fT6B/z6Ii7FXNafjxsNspI0rlhbU=
|
||||
github.com/diamondburned/cchat v0.0.46 h1:fzm2XA9uGasX0uaic1AFfUMGA53PlO+GGmkYbx49A5k=
|
||||
github.com/diamondburned/cchat v0.0.46/go.mod h1:+zXktogE45A0om4fT6B/z6Ii7FXNafjxsNspI0rlhbU=
|
||||
github.com/diamondburned/ningen v0.1.1-0.20200621014632-6babb812b249 h1:yP7kJ+xCGpDz6XbcfACJcju4SH1XDPwlrvbofz3lP8I=
|
||||
github.com/diamondburned/ningen v0.1.1-0.20200621014632-6babb812b249/go.mod h1:xW9hpBZsGi8KpAh10TyP+YQlYBo+Xc+2w4TR6N0951A=
|
||||
github.com/diamondburned/ningen v0.1.1-0.20200708085949-b64e350f3b8c h1:3h/kyk6HplYZF3zLi106itjYJWjbuMK/twijeGLEy2M=
|
||||
|
|
|
@ -2,10 +2,12 @@ package discord
|
|||
|
||||
import (
|
||||
"context"
|
||||
"log"
|
||||
|
||||
"github.com/diamondburned/arikawa/discord"
|
||||
"github.com/diamondburned/arikawa/gateway"
|
||||
"github.com/diamondburned/arikawa/state"
|
||||
"github.com/diamondburned/arikawa/utils/httputil/httpdriver"
|
||||
"github.com/diamondburned/cchat"
|
||||
"github.com/diamondburned/cchat/services"
|
||||
"github.com/diamondburned/cchat/text"
|
||||
|
@ -100,7 +102,10 @@ func NewSession(s *state.State) (*Session, error) {
|
|||
return nil, errors.Wrap(err, "Failed to create a state wrapper")
|
||||
}
|
||||
|
||||
var _ state.Store = s
|
||||
n.Client.OnRequest = append(n.Client.OnRequest, func(r httpdriver.Request) error {
|
||||
log.Println("[Discord] Request", r.GetPath())
|
||||
return nil
|
||||
})
|
||||
|
||||
if err := s.Open(); err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Reference in a new issue