Twitter: twitter fixes to actually tweet stuff
This commit is contained in:
parent
4bc6c31326
commit
6bf36f40a6
@ -193,7 +193,7 @@ class Twitter(Module):
|
||||
return "Only admins can tweet."
|
||||
|
||||
try:
|
||||
if self.twit.PostUpdates(status=tweet, display_coordinates=False) is not None:
|
||||
if self.twit.update_status(status=tweet, display_coordinates=False) is not None:
|
||||
return "'{0:s}' tweeted.".format(tweet)
|
||||
else:
|
||||
return "Unknown error sending tweet(s)."
|
||||
@ -218,7 +218,7 @@ class Twitter(Module):
|
||||
|
||||
try:
|
||||
reptweet = "@{0:s}: {1:s}".format(target, tweet)
|
||||
if self.twit.PostUpdate(status=reptweet, display_coordinates=False, in_reply_to_status_id=status_id) is not None:
|
||||
if self.twit.update_status(status=reptweet, display_coordinates=False, in_reply_to_status_id=status_id) is not None:
|
||||
return "'{0:s}' tweeted.".format(tweet)
|
||||
else:
|
||||
return "Unknown error sending tweet."
|
||||
|
Loading…
Reference in New Issue
Block a user