From f2cea695eed793fb15cbf3e4c94e5b70a85c1f7f Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Wed, 15 Aug 2018 13:38:31 -0500 Subject: [PATCH] Play sound when a tweet has been sent and streaming is not available --- src/controller/buffersController.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controller/buffersController.py b/src/controller/buffersController.py index db26d8e5..ddde0cd8 100644 --- a/src/controller/buffersController.py +++ b/src/controller/buffersController.py @@ -162,9 +162,9 @@ class bufferController(object): else: text = twishort.create_tweet(self.session.settings["twitter"]["user_key"], self.session.settings["twitter"]["user_secret"], text, 1) if not hasattr(tweet, "attachments") or len(tweet.attachments) == 0: - call_threaded(self.session.api_call, call_name="update_status", status=text) + call_threaded(self.session.api_call, call_name="update_status", status=text, _sound="tweet_send.ogg") else: - call_threaded(self.post_with_media, text=text, attachments=tweet.attachments) + call_threaded(self.post_with_media, text=text, attachments=tweet.attachments, _sound="tweet_send.ogg") if hasattr(tweet.message, "destroy"): tweet.message.destroy() self.session.settings.write()