Search: bot

Hubot + ES6 + Promises
Hubot + ES6 + Promises
Chatops, Hubot, Node.js, Slack

Hubot + ES6 + Promises

…reply back to the channel. Here is the code: const norrisUrl = ‘https://api.icndb.com/jokes/random’, decode = require(‘decode-html’); //the export is used to init the bot module.exports = (robot) => { //listen to phrases that contain “Norris” robot.hear(/Norris/i, (res) => { //wrap…

Investigate problems due to User-Agent using Bash
Investigate problems due to User-Agent using Bash
bash, cURL, Scripting

Investigate problems due to User-Agent using Bash

…micro-site with two the UA’s and discover the difference. UA_Chrome=”Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36″; UA_AdsBot=”AdsBot-Google (+http://www.google.com/adsbot.html)”; URL=”sea/C21/1AI/D01/?v=3.1&NavState=/_/N-1xv8Zmpk&kind=Regenlaars+(Dames)”; # Cloudflare visit “https://www.wehkamp.nl/$URL” “$UA_Chrome”; visit “https://www.wehkamp.nl/$URL” “$UA_AdsBot“; # main gateway visit “https://gateway.wehkamp.internal/$URL” “$UA_Chrome”; visit “https://gateway.wehkamp.internal/$URL”…

Simple Python code to send message to Slack channel (without packages)
Simple Python code to send message to Slack channel (without packages)
Chatops, Databricks / Spark, Python, Slack

Simple Python code to send message to Slack channel (without packages)

…and channel (note: it should start with a #). slack_token = ‘xoxb-my-bot-token’ slack_channel = ‘#my-channel’ slack_icon_url = ‘https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTuGqps7ZafuzUsViFGIremEL2a3NR0KO0s0RTCMXmzmREJd5m4MA&s’ slack_user_name = ‘Double Images Monitor’ I use the same bot for all my messages. To let my users know which application is…