mirror of
https://github.com/diamondburned/cchat-mock.git
synced 2025-01-29 21:27:22 +00:00
Added Disconnect for v0.0.26
This commit is contained in:
parent
b36f8f47de
commit
1e7651c8dd
2
go.mod
2
go.mod
|
@ -4,6 +4,6 @@ go 1.14
|
|||
|
||||
require (
|
||||
github.com/Pallinder/go-randomdata v1.2.0
|
||||
github.com/diamondburned/cchat v0.0.25
|
||||
github.com/diamondburned/cchat v0.0.26
|
||||
github.com/pkg/errors v0.9.1
|
||||
)
|
||||
|
|
2
go.sum
2
go.sum
|
@ -48,6 +48,8 @@ github.com/diamondburned/cchat v0.0.23 h1:AcR0hX07fV2Wz3P/EXiPMWQIWWCw/mTFHIuwO4
|
|||
github.com/diamondburned/cchat v0.0.23/go.mod h1:+zXktogE45A0om4fT6B/z6Ii7FXNafjxsNspI0rlhbU=
|
||||
github.com/diamondburned/cchat v0.0.25 h1:+kf2gQu5TQs1vD/gCaVlzKu5vOqZz/1Qw87xHdeFYj4=
|
||||
github.com/diamondburned/cchat v0.0.25/go.mod h1:+zXktogE45A0om4fT6B/z6Ii7FXNafjxsNspI0rlhbU=
|
||||
github.com/diamondburned/cchat v0.0.26 h1:QBt4d65uzUPJz3jF8b2pJ09Jz8LeBRyG2ol47FOy0g0=
|
||||
github.com/diamondburned/cchat v0.0.26/go.mod h1:+zXktogE45A0om4fT6B/z6Ii7FXNafjxsNspI0rlhbU=
|
||||
github.com/lucasb-eyer/go-colorful v1.0.3 h1:QIbQXiugsb+q10B+MI+7DI1oQLdmnep86tWFlaaUAac=
|
||||
github.com/lucasb-eyer/go-colorful v1.0.3/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
|
||||
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
|
||||
|
|
|
@ -144,6 +144,11 @@ func (s *Session) Name() text.Rich {
|
|||
return text.Rich{Content: s.username}
|
||||
}
|
||||
|
||||
func (s *Session) Disconnect() error {
|
||||
// Nothing to do here, but emulate errors.
|
||||
return simulateAustralianInternet()
|
||||
}
|
||||
|
||||
func (s *Session) Servers(container cchat.ServersContainer) error {
|
||||
// Simulate slight IO.
|
||||
<-time.After(time.Second)
|
||||
|
|
Loading…
Reference in a new issue