bots

Is it possible to create a slack datetime picker element?

巧了我就是萌 提交于 2020-03-22 12:15:52
问题 I need my slack bot to support user input date and time, I know there is DatePicker which I can input a certain date. But I also need time, I am thinking to use a text field to just input string, but it's annoying that users have to deal with format stuff every time. Is there a better way to do this? or is it possible to make a date time picker by myself? edit: Users might input any specific time, any hour or minute. 回答1: The Slack API currently only provides a date picker, not not a datetime

How to throw a custom message using Dialogflow after three times of fallback

冷暖自知 提交于 2020-03-16 06:58:30
问题 I am developing a chatbot using Dialogflow, I would like to throw a message to user when the chatbot doesn't understand the user input for three times in a row and for the forth time respond with a custom message (not the one of the options declared on the dialogflow interface) One idea that I have is to make a counter within the input unknown action like this: var counter = 1; // The default fallback intent has been matched, try to recover (https://dialogflow.com/docs/intents#fallback

How to throw a custom message using Dialogflow after three times of fallback

房东的猫 提交于 2020-03-16 06:57:09
问题 I am developing a chatbot using Dialogflow, I would like to throw a message to user when the chatbot doesn't understand the user input for three times in a row and for the forth time respond with a custom message (not the one of the options declared on the dialogflow interface) One idea that I have is to make a counter within the input unknown action like this: var counter = 1; // The default fallback intent has been matched, try to recover (https://dialogflow.com/docs/intents#fallback

My Discord.js bot is running (online and shows in console) but it won't respond to commands

佐手、 提交于 2020-02-29 08:02:30
问题 So, one day I was using TeamViewer to connect to my RPi3 and told it to reboot. As soon as it finished, I connected to the pi, started the bot, and it looked like it was starting up properly. When I went to send a command on discord, the bot didn't respond. The bot is still running though. I tried changing some of the code, but nothing changed. Here's the code: // Load up the discord.js library const Discord = require("discord.js"); // This is your client. Some people call it `bot`, some

How do I make my bot delete a message when it contains a certain word?

时光毁灭记忆、已成空白 提交于 2020-02-08 10:36:47
问题 Okay so I'm trying to make a filter for my bot, but one that isn't too complicated. I've got this: @bot.event async def on_message(ctx,message): if 'fuck' in Message.content.lower: Message.delete() But it gives the error: Ignoring exception in on_message Traceback (most recent call last): File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\site-packages\discord\client.py", line 270, in _run_event await coro(*args, **kwargs) TypeError: on_message() missing 1 required positional

Bot works on one Microsoft Teams Account but not on the other

我的未来我决定 提交于 2020-02-06 19:04:26
问题 I have 2 different Microsoft Teams Accounts that are not linked in any way. On one account I was able to sideload my bot and if I chat with my Bot in an Teams Channel my bot does Answer. Also it answeres me if I private message it. On the other account I also sideloaded my bot but my Bot does not react if I message him in an Teams Channel. But it answeres me if I private message it. I created both bots via App Studio in Teams. Now I've noticed a difference in App Studio and I think this is

Bot works on one Microsoft Teams Account but not on the other

◇◆丶佛笑我妖孽 提交于 2020-02-06 19:04:11
问题 I have 2 different Microsoft Teams Accounts that are not linked in any way. On one account I was able to sideload my bot and if I chat with my Bot in an Teams Channel my bot does Answer. Also it answeres me if I private message it. On the other account I also sideloaded my bot but my Bot does not react if I message him in an Teams Channel. But it answeres me if I private message it. I created both bots via App Studio in Teams. Now I've noticed a difference in App Studio and I think this is

Slack Events API: Events are posted (multiple times) for responses of own bot user

北城以北 提交于 2020-02-05 04:41:45
问题 I seem to have a problem when responding to incoming messages via the Slack Events API (im.message event). When a user (in this case UQ364CBPF ) sends a message to my App Home, the events API correctly posts an event to my backend (=first line in the logs below). I respond to the event with an HTTP 200 OK, and in my code (see below), I trigger a response from my Bot User. This response is sent correctly in Slack. But : after that, the events API keeps posting events that my own bot user has

How to limit scrapy request objects?

社会主义新天地 提交于 2020-01-31 20:04:52
问题 So I have a spider that I thought was leaking memory, turns out it is just grabbing too many links from link rich pages (sometimes it puts upwards of 100,000) when I check the telnet console >>> prefs() Now I have been over the docs and google again and again and I can't find a way to limit the requests that the spider takes in. What I want is to be able to tell it to hold back on taking requests once a certain amount goes into the scheduler. I have tried setting a DEPTH_LIMIT but that only

Convert date format without timezone - Google app script (Javascript), Google spreadsheet

不问归期 提交于 2020-01-26 03:56:45
问题 I'm working on integration between Google spreadsheet and LINE Message API (BOT) where Google app script is back-end. I get the date-format cell from Google spreadsheet and send to LINE bot but the message reply showed different thing. in a cell of Google Spreadsheet 1/5/2020 In Google app script, I first coded it var colb = ss.getSheets()[0].getRange(i+3, 2).getValue(); but LINE message, it sends format included timezone as default Sun Jan 05 2020 00:00:00 GMT+0700 (ICT) So I coded it var