使用谷歌 Dialogflow 快速制作一个 Slack 机器人
好久以前, 我用谷歌的Dialogflow 写了一个 Telegram 的机器人。 就是长下面这样的。 这个机器人是由 Dialogflow 来提取自然语言中的关键字, 也就是地点。 拿到地点以后, 它会把地点作为参数传到我的服务器上。 我的服务器上会调用 OpenWeatherMap 的API 来拿到天气信… 阅读更多 »使用谷歌 Dialogflow 快速制作一个 Slack 机器人
好久以前, 我用谷歌的Dialogflow 写了一个 Telegram 的机器人。 就是长下面这样的。 这个机器人是由 Dialogflow 来提取自然语言中的关键字, 也就是地点。 拿到地点以后, 它会把地点作为参数传到我的服务器上。 我的服务器上会调用 OpenWeatherMap 的API 来拿到天气信… 阅读更多 »使用谷歌 Dialogflow 快速制作一个 Slack 机器人
我在Nodejs里使用 debug 这个模块来记录日志 https://www.npmjs.com/package/debug 直接在命令行里面运行的时候,日志可以正确显示。 而当我直接在 VSCODE 里面运行的时候, 用 debug 模块输出的日志则无法显示。 但是用 console.log 输出的日志则… 阅读更多 »Nodejs debug 模块在 VSCODE debug console 里不工作的问题
1. Check whether the mlab is exceed quota 2. Bind the bot to ngork 3. ngrok forward to fiddler 4. Fiddler to point to google app script to test 5. Point to… 阅读更多 »Youtube Google Script Bot Broken checklist
项目代码我也上传了gitee 无需翻墙直接访问?
My android studio keep waiting to connect the the emulator, so that I couldn’t debug. Using adb to check, the device is always offline. Stop and star… 阅读更多 »Fix android emulator offline
If for some reasons, npm update doesn’t fit you need and you need to update some npm packages one by one. You will want to write a batch command to d… 阅读更多 »How to batch run npm install on Windows 10
When you build a nodejs app, you may need to use a specific version of node for building. Either you want to match the running env or your node packages re… 阅读更多 »How to use a different nodejs version on atlassian bamboo build agent
1. Click the top left corner burger icon to popup the menu sidebar 2. Fill the basics form 3. You can change the side to B1 so that you can get your first … 阅读更多 »Create a azure app service for nodejs app
I am going to add a global queue object to my nodejs express program, then this raises a concern of thread safety. I am implementing a queue with only 10 e… 阅读更多 »A simple javascript threading experiment with setTimeout
模块链接 https://www.npmjs.com/package/async-lock 昨天正式发布了用nodejs 重写的 Telegram抽奖机器人 @fengdrawbot 后, 马上在第一次被使用中就发现了一超级大BUG。 由于机器人有人数到了就会自动开奖的机制, 所以在每次有人加入抽奖的时候就会… 阅读更多 »在 nodejs expressjs 中使用 async-lock 模块实现多线程安全代码