Packages

case class MicroBot[P, Q, W, V, ID](response: (V) => (P) => Future[Q], predicate: (P) => (V) => Boolean = (_: P) => (_ : V) => true, name: Option[String] = None)(implicit ppw: 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, one for each value of the auxiliary queryable (in simple cases a singleton is returned)

response

the action of the bot

predicate

the condition the post must satisfy to trigger the bot

qw

postability of the response post type

lv

queryability of the other arguments

Linear Supertypes
Serializable, Product, Equals, TypedPostResponse[P, W, ID], PostResponse[W, ID], AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MicroBot
  2. Serializable
  3. Product
  4. Equals
  5. TypedPostResponse
  6. PostResponse
  7. AnyRef
  8. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new MicroBot(response: (V) => (P) => Future[Q], predicate: (P) => (V) => Boolean = (_: P) => (_ : V) => true, name: Option[String] = None)(implicit ppw: Postable[P, W, ID], qw: Postable[Q, W, ID], lv: LocalQueryable[V, W, ID], dg: DataGetter[Q, W, ID])

    response

    the action of the bot

    predicate

    the condition the post must satisfy to trigger the bot

    qw

    postability of the response post type

    lv

    queryability of the other arguments

Type Members

  1. type PostType = P
    Definition Classes
    TypedPostResponsePostResponse

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def &&(that: TypedPostResponse[P, W, ID]): ConcurrentResponse[P, W, ID]
    Definition Classes
    TypedPostResponse
  4. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from MicroBot[P, Q, W, V, ID] toany2stringadd[MicroBot[P, Q, W, V, ID]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  5. def ->[B](y: B): (MicroBot[P, Q, W, V, ID], B)
    Implicit
    This member is added by an implicit conversion from MicroBot[P, Q, W, V, ID] toArrowAssoc[MicroBot[P, Q, W, V, ID]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. def :+[QQ, VV](that: MicroBot[P, QQ, W, VV, ID])(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[QQ], arg1: scala.reflect.api.JavaUniverse.TypeTag[VV], qqw: Postable[QQ, W, ID], dgqq: DataGetter[QQ, W, ID], nilGetter: Postable[HNil, W, ID]): MicroBot[P, ::[Q, ::[QQ, HNil]], W, ::[V, ::[VV, HNil]], ID]
  7. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. 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
  9. 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
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  12. implicit val dg: DataGetter[Q, W, ID]
  13. def ensuring(cond: (MicroBot[P, Q, W, V, ID]) => Boolean, msg: => Any): MicroBot[P, Q, W, V, ID]
    Implicit
    This member is added by an implicit conversion from MicroBot[P, Q, W, V, ID] toEnsuring[MicroBot[P, Q, W, V, ID]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: (MicroBot[P, Q, W, V, ID]) => Boolean): MicroBot[P, Q, W, V, ID]
    Implicit
    This member is added by an implicit conversion from MicroBot[P, Q, W, V, ID] toEnsuring[MicroBot[P, Q, W, V, ID]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean, msg: => Any): MicroBot[P, Q, W, V, ID]
    Implicit
    This member is added by an implicit conversion from MicroBot[P, Q, W, V, ID] toEnsuring[MicroBot[P, Q, W, V, ID]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean): MicroBot[P, Q, W, V, ID]
    Implicit
    This member is added by an implicit conversion from MicroBot[P, Q, W, V, ID] toEnsuring[MicroBot[P, Q, W, V, ID]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from MicroBot[P, Q, W, V, ID] toStringFormat[MicroBot[P, Q, W, V, ID]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. implicit val lv: LocalQueryable[V, W, ID]
  22. val name: Option[String]
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. def post(web: W, content: P, id: ID): Future[Vector[PostData[_, W, ID]]]
    Definition Classes
    MicroBotTypedPostResponsePostResponse
  27. implicit val ppw: Postable[P, W, ID]
  28. val predicate: (P) => (V) => Boolean
  29. def productElementNames: Iterator[String]
    Definition Classes
    Product
  30. implicit val pw: Postable[P, W, ID]
    Definition Classes
    TypedPostResponse
  31. implicit val qw: Postable[Q, W, ID]
  32. 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
  33. def respond(web: W)(pds: Vector[PostData[PostType, W, ID]]): Future[Vector[PostData[_, W, ID]]]
    Definition Classes
    PostResponse
  34. val response: (V) => (P) => Future[Q]
  35. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  36. def triggerMap[R](transform: (R) => P)(implicit rw: Postable[R, W, ID]): MicroBot[R, Q, W, ::[V, HNil], ID]
  37. def triggerWith[R](implicit rw: Postable[R, W, ID], pq: LocalQueryable[P, W, ID]): MicroBot[R, Q, W, ::[P, ::[V, HNil]], ID]
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  40. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  2. def [B](y: B): (MicroBot[P, Q, W, V, ID], B)
    Implicit
    This member is added by an implicit conversion from MicroBot[P, Q, W, V, ID] toArrowAssoc[MicroBot[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.

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from TypedPostResponse[P, W, ID]

Inherited from PostResponse[W, ID]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromMicroBot[P, Q, W, V, ID] to any2stringadd[MicroBot[P, Q, W, V, ID]]

Inherited by implicit conversion StringFormat fromMicroBot[P, Q, W, V, ID] to StringFormat[MicroBot[P, Q, W, V, ID]]

Inherited by implicit conversion Ensuring fromMicroBot[P, Q, W, V, ID] to Ensuring[MicroBot[P, Q, W, V, ID]]

Inherited by implicit conversion ArrowAssoc fromMicroBot[P, Q, W, V, ID] to ArrowAssoc[MicroBot[P, Q, W, V, ID]]

Ungrouped