Class StrangerMessageEvent

  • All Implemented Interfaces:
    Serializable

    public class StrangerMessageEvent
    extends MessageEvent
    Called when a stranger chat with bot (this does not execute any commands)
    See Also:
    Serialized Form
    • Constructor Detail

      • StrangerMessageEvent

        public StrangerMessageEvent​(Bot bot,
                                    Message message,
                                    Stranger stranger,
                                    MessageSource source)
        Constructs a StrangerMessageEvent
        Parameters:
        bot - the bot
        message - the chat message
        stranger - the stranger who chats with bot
        source - the message source
    • Method Detail

      • getStranger

        public Stranger getStranger()