展示HN:我写了一个脚本,可以让我在无聊时接到假电话。
我写了一个小脚本,可以让我在无聊和尴尬的场合中假装接到电话逃脱。我从Twilio购买了一个虚拟号码,并将其保存为我的一个亲戚的号码。
每当我感到困扰时,我只需在手机上点击一个名为“ESCAPE”的按钮。这个按钮会向我的远程服务器发送请求。服务器运行一个小的Python脚本,安排一次实际的电话。过了一分钟,我的手机就会响起,并播放一段预录的音频。
我只需说“抱歉,我接到一个电话”,然后就离开了。虽然是一个小项目,但它已经帮我逃脱了很多次。
脚本 - <a href="https://x.com/the2ndfloorguy/status/1965624429146165251" rel="nofollow">https://x.com/the2ndfloorguy/status/1965624429146165251</a>
查看原文
I built a little script that gives me a fake phone call to escape boring and awkward situations. I bought a virtual number from twilio
and saved it as one of my relatives.<p>Whenever I feel stuck, I just tap a button called “ESCAPE” on my phone. It sends a request to my remote server. The server runs a small Python script which schedules an actual call. After a minute, my phone rings and plays a pre-recorded audio.<p>I simply say “sorry, I’m getting a call” and walk away. A tiny project, but it has saved me so many times.<p>Script - <a href="https://x.com/the2ndfloorguy/status/1965624429146165251" rel="nofollow">https://x.com/the2ndfloorguy/status/1965624429146165251</a>