<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	〈LINE Bot：用 Google Apps Script 建立簡易網站監測機器人〉的留言	</title>
	<atom:link href="https://www.letswrite.tw/line-bot-gas-monitor/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.letswrite.tw/line-bot-gas-monitor/</link>
	<description>前端工程師 August 的學習筆記 -- solving problems, in simple ways.</description>
	<lastBuildDate>Mon, 03 Mar 2025 12:53:28 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>
	<item>
		<title>
		留言者: JACKYLIN		</title>
		<link>https://www.letswrite.tw/line-bot-gas-monitor/#comment-240</link>

		<dc:creator><![CDATA[JACKYLIN]]></dc:creator>
		<pubDate>Wed, 09 Jun 2021 05:30:13 +0000</pubDate>
		<guid isPermaLink="false">http://localhost:3001/?p=1194#comment-240</guid>

					<description><![CDATA[請問網址可以改為IP嗎?
我改了都說錯誤]]></description>
			<content:encoded><![CDATA[<p>請問網址可以改為IP嗎?<br />
我改了都說錯誤</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		留言者: hardline1		</title>
		<link>https://www.letswrite.tw/line-bot-gas-monitor/#comment-162</link>

		<dc:creator><![CDATA[hardline1]]></dc:creator>
		<pubDate>Mon, 28 Dec 2020 16:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://localhost:3001/?p=1194#comment-162</guid>

					<description><![CDATA[回覆的對象為「&lt;a href=&quot;https://www.letswrite.tw/line-bot-gas-monitor/#comment-160&quot;&gt;zimi&lt;/a&gt;」。

ZIMI，可以請教取得&lt;span&gt;群組ID是如何執行成功的嗎?&lt;/span&gt;]]></description>
			<content:encoded><![CDATA[<p>回覆的對象為「<a href="https://www.letswrite.tw/line-bot-gas-monitor/#comment-160">zimi</a>」。</p>
<p>ZIMI，可以請教取得<span>群組ID是如何執行成功的嗎?</span></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		留言者: hardline1		</title>
		<link>https://www.letswrite.tw/line-bot-gas-monitor/#comment-161</link>

		<dc:creator><![CDATA[hardline1]]></dc:creator>
		<pubDate>Mon, 28 Dec 2020 16:07:39 +0000</pubDate>
		<guid isPermaLink="false">http://localhost:3001/?p=1194#comment-161</guid>

					<description><![CDATA[回覆的對象為「&lt;a href=&quot;https://www.letswrite.tw/line-bot-gas-monitor/#comment-127&quot;&gt;August&lt;/a&gt;」。

&lt;span&gt;var&lt;/span&gt;&lt;span&gt; token &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&#039;LINE 的 Channel access token&#039;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
&lt;span&gt;function&lt;/span&gt; &lt;span&gt;sendMessage&lt;/span&gt;(message) {  &lt;span&gt;var&lt;/span&gt; data &lt;span&gt;=&lt;/span&gt; {    &lt;span&gt;to&lt;/span&gt;: &lt;span&gt;&#039;這邊填群組ID 或 個人ID&#039;&lt;/span&gt;,    &lt;span&gt;messages&lt;/span&gt;: [      {        &lt;span&gt;&quot;type&quot;&lt;/span&gt;: &lt;span&gt;&quot;text&quot;&lt;/span&gt;,        &lt;span&gt;&quot;text&quot;&lt;/span&gt;: message      },    ]  };  &lt;span&gt;var&lt;/span&gt; option &lt;span&gt;=&lt;/span&gt; {    &lt;span&gt;method&lt;/span&gt;: &lt;span&gt;&#039;post&#039;&lt;/span&gt;,    &lt;span&gt;headers&lt;/span&gt;: { &lt;span&gt;Authorization&lt;/span&gt;: &lt;span&gt;&#039;Bearer &#039;&lt;/span&gt; &lt;span&gt;+&lt;/span&gt; token },    &lt;span&gt;contentType&lt;/span&gt;: &lt;span&gt;&#039;application/json&#039;&lt;/span&gt;,    &lt;span&gt;payload&lt;/span&gt;: &lt;span&gt;JSON&lt;/span&gt;.&lt;span&gt;stringify&lt;/span&gt;(data)  };    &lt;span&gt;UrlFetchApp&lt;/span&gt;.&lt;span&gt;fetch&lt;/span&gt;(&lt;span&gt;&#039;https://api.line.me/v2/bot/message/push&#039;&lt;/span&gt;, option);  }

您好，我想取得群組ID，但是用了這一段也改了&lt;span&gt;token，其他2-4點也設定了，但是在群組中隨意打了什麼，BOT還是沒有反應，是哪裡做錯了嗎?&lt;/span&gt;]]></description>
			<content:encoded><![CDATA[<p>回覆的對象為「<a href="https://www.letswrite.tw/line-bot-gas-monitor/#comment-127">August</a>」。</p>
<p><span>var</span><span> token </span><span>=</span><span> </span><span>&#8216;LINE 的 Channel access token&#8217;</span><span>;</span><br />
<span>function</span> <span>sendMessage</span>(message) {  <span>var</span> data <span>=</span> {    <span>to</span>: <span>&#8216;這邊填群組ID 或 個人ID&#8217;</span>,    <span>messages</span>: [      {        <span>&#8220;type&#8221;</span>: <span>&#8220;text&#8221;</span>,        <span>&#8220;text&#8221;</span>: message      },    ]  };  <span>var</span> option <span>=</span> {    <span>method</span>: <span>&#8216;post&#8217;</span>,    <span>headers</span>: { <span>Authorization</span>: <span>&#8216;Bearer &#8216;</span> <span>+</span> token },    <span>contentType</span>: <span>&#8216;application/json&#8217;</span>,    <span>payload</span>: <span>JSON</span>.<span>stringify</span>(data)  };    <span>UrlFetchApp</span>.<span>fetch</span>(<span>&#8216;https://api.line.me/v2/bot/message/push&#8217;</span>, option);  }</p>
<p>您好，我想取得群組ID，但是用了這一段也改了<span>token，其他2-4點也設定了，但是在群組中隨意打了什麼，BOT還是沒有反應，是哪裡做錯了嗎?</span></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		留言者: zimi		</title>
		<link>https://www.letswrite.tw/line-bot-gas-monitor/#comment-160</link>

		<dc:creator><![CDATA[zimi]]></dc:creator>
		<pubDate>Fri, 25 Dec 2020 09:38:19 +0000</pubDate>
		<guid isPermaLink="false">http://localhost:3001/?p=1194#comment-160</guid>

					<description><![CDATA[回覆的對象為「&lt;a href=&quot;https://www.letswrite.tw/line-bot-gas-monitor/#comment-159&quot;&gt;August&lt;/a&gt;」。

成功了，謝謝作者🙇🏻‍♀]]></description>
			<content:encoded><![CDATA[<p>回覆的對象為「<a href="https://www.letswrite.tw/line-bot-gas-monitor/#comment-159">August</a>」。</p>
<p>成功了，謝謝作者🙇🏻‍♀</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		留言者: zimi		</title>
		<link>https://www.letswrite.tw/line-bot-gas-monitor/#comment-158</link>

		<dc:creator><![CDATA[zimi]]></dc:creator>
		<pubDate>Fri, 25 Dec 2020 08:52:22 +0000</pubDate>
		<guid isPermaLink="false">http://localhost:3001/?p=1194#comment-158</guid>

					<description><![CDATA[請問~程式碼裡面說 沒用時要註解起來，我註解了，但還是會重複傳群組ID，
我是不是哪裡做錯了QAQ]]></description>
			<content:encoded><![CDATA[<p>請問~程式碼裡面說 沒用時要註解起來，我註解了，但還是會重複傳群組ID，<br />
我是不是哪裡做錯了QAQ</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		留言者: Ivan		</title>
		<link>https://www.letswrite.tw/line-bot-gas-monitor/#comment-126</link>

		<dc:creator><![CDATA[Ivan]]></dc:creator>
		<pubDate>Thu, 29 Oct 2020 08:50:03 +0000</pubDate>
		<guid isPermaLink="false">http://localhost:3001/?p=1194#comment-126</guid>

					<description><![CDATA[您好：
我做到 群組的ID 這邊就卡住了，
我使用取得群組 ID 的方式 第二種，
我將您寫的 code 貼在 GAS 上面，而且也發佈了，
而且也有將 GAS 產生的網址貼到 LINE 的 webhook url 設定上，
請問還有什麼地方需要注意的嗎？]]></description>
			<content:encoded><![CDATA[<p>您好：<br />
我做到 群組的ID 這邊就卡住了，<br />
我使用取得群組 ID 的方式 第二種，<br />
我將您寫的 code 貼在 GAS 上面，而且也發佈了，<br />
而且也有將 GAS 產生的網址貼到 LINE 的 webhook url 設定上，<br />
請問還有什麼地方需要注意的嗎？</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		留言者: Mak		</title>
		<link>https://www.letswrite.tw/line-bot-gas-monitor/#comment-111</link>

		<dc:creator><![CDATA[Mak]]></dc:creator>
		<pubDate>Mon, 31 Aug 2020 03:42:33 +0000</pubDate>
		<guid isPermaLink="false">http://localhost:3001/?p=1194#comment-111</guid>

					<description><![CDATA[回覆的對象為「&lt;a href=&quot;https://www.letswrite.tw/line-bot-gas-monitor/#comment-110&quot;&gt;August&lt;/a&gt;」。

其實是擔心名單裡面如果有一個網址填錯或是域名有更換，程式就會中斷&lt;span&gt;。&lt;/span&gt;

用了 try catch 是可以的 謝謝你^^]]></description>
			<content:encoded><![CDATA[<p>回覆的對象為「<a href="https://www.letswrite.tw/line-bot-gas-monitor/#comment-110">August</a>」。</p>
<p>其實是擔心名單裡面如果有一個網址填錯或是域名有更換，程式就會中斷<span>。</span></p>
<p>用了 try catch 是可以的 謝謝你^^</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		留言者: Mak		</title>
		<link>https://www.letswrite.tw/line-bot-gas-monitor/#comment-108</link>

		<dc:creator><![CDATA[Mak]]></dc:creator>
		<pubDate>Thu, 27 Aug 2020 04:02:01 +0000</pubDate>
		<guid isPermaLink="false">http://localhost:3001/?p=1194#comment-108</guid>

					<description><![CDATA[不好意思&lt;span&gt;，&lt;/span&gt;想再請問如果用 &lt;code&gt;UrlFetchApp&lt;/code&gt; 配對到一個不存在的 domain name 即使有加上
&lt;code&gt;{ muteHttpExceptions: true }&lt;/code&gt; 但還是會在執行的時候會跳出 DNS error 的錯誤訊息&lt;span&gt;，這部分可以建議用什麼方式做例外處理嗎？&lt;/span&gt;
&lt;span&gt;&lt;span class=&quot;ql-cursor&quot;&gt;﻿&lt;/span&gt;&lt;/span&gt;]]></description>
			<content:encoded><![CDATA[<p>不好意思<span>，</span>想再請問如果用 <code>UrlFetchApp</code> 配對到一個不存在的 domain name 即使有加上<br />
<code>{ muteHttpExceptions: true }</code> 但還是會在執行的時候會跳出 DNS error 的錯誤訊息<span>，這部分可以建議用什麼方式做例外處理嗎？</span><br />
<span><span class="ql-cursor">﻿</span></span></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		留言者: Mak		</title>
		<link>https://www.letswrite.tw/line-bot-gas-monitor/#comment-106</link>

		<dc:creator><![CDATA[Mak]]></dc:creator>
		<pubDate>Thu, 27 Aug 2020 02:33:08 +0000</pubDate>
		<guid isPermaLink="false">http://localhost:3001/?p=1194#comment-106</guid>

					<description><![CDATA[回覆的對象為「&lt;a href=&quot;https://www.letswrite.tw/line-bot-gas-monitor/#comment-102&quot;&gt;August&lt;/a&gt;」。

了解 謝謝你～]]></description>
			<content:encoded><![CDATA[<p>回覆的對象為「<a href="https://www.letswrite.tw/line-bot-gas-monitor/#comment-102">August</a>」。</p>
<p>了解 謝謝你～</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		留言者: Mak		</title>
		<link>https://www.letswrite.tw/line-bot-gas-monitor/#comment-101</link>

		<dc:creator><![CDATA[Mak]]></dc:creator>
		<pubDate>Wed, 26 Aug 2020 10:06:12 +0000</pubDate>
		<guid isPermaLink="false">http://localhost:3001/?p=1194#comment-101</guid>

					<description><![CDATA[Hi 想問一下 &lt;a href=&quot;https://gist.github.com/letswritetw/3f00ed30df54f766101053312437549a#file-line-bot-gas-monitor-js&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer nofollow ugc&quot;&gt;line-bot-gas-monitor.js&lt;/a&gt; 71行 判斷是不是要換成 distance &#060; limit 才會再回應時間內發送訊息.]]></description>
			<content:encoded><![CDATA[<p>Hi 想問一下 <a href="https://gist.github.com/letswritetw/3f00ed30df54f766101053312437549a#file-line-bot-gas-monitor-js" target="_blank" rel="noopener noreferrer nofollow ugc">line-bot-gas-monitor.js</a> 71行 判斷是不是要換成 distance &lt; limit 才會再回應時間內發送訊息.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
