@@ -44,7 +44,7 @@ class Wechaty private constructor(private var wechatyOptions: WechatyOptions) :
4444 val roomInvitationManager = RoomInvitationManager (this )
4545 val imageManager = ImageManager (this )
4646
47- val friendShipManager = FriendShipManager (this )
47+ val friendShipManager = FriendshipManager (this )
4848 init {
4949 if (wechatyOptions.memory == null ) {
5050 this .memory = MemoryCard (wechatyOptions.name)
@@ -121,11 +121,6 @@ class Wechaty private constructor(private var wechatyOptions: WechatyOptions) :
121121 return wechatyOptions.name
122122 }
123123
124- fun say (something : Any ): Future <Void > {
125- val msgId: String?
126- this .userSelf().say(something)
127- return CompletableFuture .completedFuture(null )
128- }
129124 fun onLogin (listener : LoginListener ):Wechaty {
130125 return on(EventEnum .LOGIN ,listener)
131126 }
@@ -512,25 +507,25 @@ class Wechaty private constructor(private var wechatyOptions: WechatyOptions) :
512507 }, " StartMain-shutdown-hook" ))
513508 }
514509
515- override fun toString (): String {
516- if (this .wechatyOptions == null ) {
517- return " default"
518- }
519- val first = if (this .wechatyOptions != null && this .puppet != null ) {
520- this .wechatyOptions.puppet
521- }
522- else {
523- " puppet"
524- }
525-
526- val second = if (this .memory != null ) {
527- this .memory!! .getName()
528- }
529- else {
530- " default"
531- }
532- return " Wechaty#<${first} ><${second} >"
533- }
510+ // override fun toString(): String {
511+ // if (this.wechatyOptions == null) {
512+ // return "default"
513+ // }
514+ // val first = if (this.wechatyOptions != null && this.puppet != null) {
515+ // this.wechatyOptions.puppet
516+ // }
517+ // else {
518+ // "puppet"
519+ // }
520+ //
521+ // val second = if (this.memory != null) {
522+ // this.memory!!.getName()
523+ // }
524+ // else {
525+ // "default"
526+ // }
527+ // return "Wechaty#<${first}><${second}>"
528+ // }
534529}
535530
536531
0 commit comments