コード例 #1
0
ファイル: GoogleBot.cs プロジェクト: abi2107/ChatBot
        public void InteractionAssigned(long interactionId, IDictionary <string, string> interactionAttributes)
        {
            Console.WriteLine("[{0}] - InteractionAssigned ({1})", BotName, interactionId);

            _chatMessageService.SendChatMessage(interactionId,
                                                new TextChatMessage {
                Text = "Welcome to the google bot! Ask me anything!"
            });
        }
コード例 #2
0
        public void InteractionAssigned(long interactionId, IDictionary <string, string> interactionAttributes)
        {
            Console.WriteLine("[{0}] - InteractionAssigned ({1})", BotName, interactionId);

            _chatMessageService.SendChatMessage(interactionId,
                                                new TextChatMessage {
                Text = "Welcome to the translator bot! Say: \"/setlang <language>\" to set the translation language. Available languages: PigLatin, binary"
            });
        }
コード例 #3
0
        public void InteractionAssigned(long interactionId, IDictionary <string, string> interactionAttributes)
        {
            Console.WriteLine("[{0}] - InteractionAssigned ({1})", BotName, interactionId);

            _chatMessageService.SendChatMessage(interactionId,
                                                new TextChatMessage {
                Text = "Welcome to the time bot. Say anything and I will tell you the current time."
            });
        }
コード例 #4
0
        public void InteractionAssigned(long interactionId, IDictionary <string, string> interactionAttributes)
        {
            Console.WriteLine("[{0}] - InteractionAssigned ({1})", BotName, interactionId);

            _chatMessageService.SendChatMessage(interactionId,
                                                new TextChatMessage
            {
                Text = "Welcome to the attribute bot! " +
                       "Say an attribute name and I will return the value. Use a pipe seperated list for multiples!. " +
                       "You can also assign attributes by saying attr_name=value."
            });
        }