Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用twit.stream和twit.post的node.js twitter bot_Node.js_Twitter_Bots_Raspberry Pi3 - Fatal编程技术网

使用twit.stream和twit.post的node.js twitter bot

使用twit.stream和twit.post的node.js twitter bot,node.js,twitter,bots,raspberry-pi3,Node.js,Twitter,Bots,Raspberry Pi3,如果这听起来像个愚蠢的问题,请原谅——我不是这些方面的专家。我有几个推特机器人在树莓皮3上运行。两者都使用Twit()。一个只是发布,一个使用流API。它们都用光了同一个目录,但它们似乎相互干扰。RPi崩溃了,我不得不重启它。如果这个问题在没有看到代码的情况下无法理解,我将把它上传到github或其他地方。问题是:在同一个bot中使用T.post(…)和T.stream(…)有什么诀窍吗?这还不够,你能给我们一些示例代码吗?如果你不想透露太多的专有信息,可以是一个简化版本。这还不够,你能给我们一

如果这听起来像个愚蠢的问题,请原谅——我不是这些方面的专家。我有几个推特机器人在树莓皮3上运行。两者都使用Twit()。一个只是发布,一个使用流API。它们都用光了同一个目录,但它们似乎相互干扰。RPi崩溃了,我不得不重启它。如果这个问题在没有看到代码的情况下无法理解,我将把它上传到github或其他地方。问题是:在同一个bot中使用T.post(…)和T.stream(…)有什么诀窍吗?

这还不够,你能给我们一些示例代码吗?如果你不想透露太多的专有信息,可以是一个简化版本。这还不够,你能给我们一些示例代码吗?如果你不想透露太多的专有信息,可以简化版本