case class MiniBot[P, Q, W, V, ID](responses: (V) => (P) => Future[Vector[Q]], predicate: (V) => Boolean = (_: V) => true, name: Option[String] = None)(implicit pw: Postable[P, W, ID], qw: Postable[Q, W, ID], lv: LocalQueryable[V, W, ID], dg: DataGetter[Q, W, ID]) extends TypedPostResponse[P, W, ID] with Product with Serializable
Bot responding to a post returning a vector of posts for each value of the auxiliary queryable - so even if the auxiliary has a single response, many posts are made
- responses
the responses of the bot
- predicate
the condition the post must satisfy to trigger the bot
- pw
postability of the post type
- qw
postability of the response post type
- lv
queryability of the other arguments
- Alphabetic
- By Inheritance
- MiniBot
- Serializable
- Product
- Equals
- TypedPostResponse
- PostResponse
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new MiniBot(responses: (V) => (P) => Future[Vector[Q]], predicate: (V) => Boolean = (_: V) => true, name: Option[String] = None)(implicit pw: Postable[P, W, ID], qw: Postable[Q, W, ID], lv: LocalQueryable[V, W, ID], dg: DataGetter[Q, W, ID])
- responses
the responses of the bot
- predicate
the condition the post must satisfy to trigger the bot
- pw
postability of the post type
- qw
postability of the response post type
- lv
queryability of the other arguments
Type Members
- type PostType = P
- Definition Classes
- TypedPostResponse → PostResponse
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def &&(that: TypedPostResponse[P, W, ID]): ConcurrentResponse[P, W, ID]
- Definition Classes
- TypedPostResponse
- def +(other: String): String
- def ->[B](y: B): (MiniBot[P, Q, W, V, ID], B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def >>[Q](that: TypedPostResponse[Q, W, ID])(implicit qw: Postable[Q, W, ID], dg: DataGetter[Q, W, ID]): ComposedResponse[P, Q, W, ID]
- Definition Classes
- TypedPostResponse
- def andThen[Q, V](second: Callback[Q, W, V, ID])(implicit pw: Postable[P, W, ID], qw: Postable[Q, W, ID]): AndThen[P, Q, V, W, ID]
- Definition Classes
- TypedPostResponse
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def ensuring(cond: (MiniBot[P, Q, W, V, ID]) => Boolean, msg: => Any): MiniBot[P, Q, W, V, ID]
- def ensuring(cond: (MiniBot[P, Q, W, V, ID]) => Boolean): MiniBot[P, Q, W, V, ID]
- def ensuring(cond: Boolean, msg: => Any): MiniBot[P, Q, W, V, ID]
- def ensuring(cond: Boolean): MiniBot[P, Q, W, V, ID]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def formatted(fmtstr: String): String
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val message: String
- val name: Option[String]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def post(web: W, content: P, id: ID): Future[Vector[PostData[_, W, ID]]]
- Definition Classes
- MiniBot → TypedPostResponse → PostResponse
- val predicate: (V) => Boolean
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- implicit val pw: Postable[P, W, ID]
- Definition Classes
- TypedPostResponse
- def reduce[Q, R](reduction: (Vector[Q]) => R)(implicit qw: Postable[Q, W, ID], rw: Postable[R, W, ID], dgr: DataGetter[R, W, ID]): ReducedResponse[P, Q, R, W, ID]
- Definition Classes
- TypedPostResponse
- def respond(web: W)(pds: Vector[PostData[PostType, W, ID]]): Future[Vector[PostData[_, W, ID]]]
- Definition Classes
- PostResponse
- val responses: (V) => (P) => Future[Vector[Q]]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def triggerMap[R](transform: (R) => P)(implicit rw: Postable[R, W, ID]): MiniBot[R, Q, W, ::[V, HNil], ID]
- def triggerWith[R](implicit rw: Postable[R, W, ID], pq: LocalQueryable[P, W, ID]): MiniBot[R, Q, W, ::[P, ::[V, HNil]], ID]
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
- def →[B](y: B): (MiniBot[P, Q, W, V, ID], B)
- Implicit
- This member is added by an implicit conversion from MiniBot[P, Q, W, V, ID] toArrowAssoc[MiniBot[P, Q, W, V, ID]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.