我有一个推特机器人,它会自动进入推特赠品,但大多数赠品你需要标记和朋友或 2,我有它,所以它会跟随、喜欢和转发,但我无法让它回复
if ("tag" in tweet.text or "TAG" or "reply"):
try:
api.update_status('@' + tweet.author + '@example1, @example2')
except Exception:
pass
这没有任何想法?
我有一个推特机器人,它会自动进入推特赠品,但大多数赠品你需要标记和朋友或 2,我有它,所以它会跟随、喜欢和转发,但我无法让它回复
if ("tag" in tweet.text or "TAG" or "reply"):
try:
api.update_status('@' + tweet.author + '@example1, @example2')
except Exception:
pass
这没有任何想法?
你会想要使用tweet.author.name
. 这是我最近制作的一个转发机器人的一个例子。
https://github.com/Kamori/ValorantLFM/blob/master/retweeter/valorantlfm.py#L92