From 425b8bf605c8ab95212fdd73c01910a41ca837b4 Mon Sep 17 00:00:00 2001 From: Paul-Louis NECH Date: Mon, 18 Nov 2019 12:38:25 +0100 Subject: [PATCH] feat(Tweeper): Executable, pause before tweet --- KoozDawa/tweeper.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) mode change 100644 => 100755 KoozDawa/tweeper.py diff --git a/KoozDawa/tweeper.py b/KoozDawa/tweeper.py old mode 100644 new mode 100755 index a9c6619..657b50e --- a/KoozDawa/tweeper.py +++ b/KoozDawa/tweeper.py @@ -1,5 +1,6 @@ +#! /usr/bin/env python import os - +import time import tweepy from didyoumean3.didyoumean import did_you_mean @@ -18,11 +19,13 @@ class Tweeper(object): def tweet(self, message): """Tweets a message after spellchecking it.""" message = did_you_mean(message) + print("About to tweet:", message) + time.sleep(5) self.api.update_status(message) def main(): - Tweeper().tweet("tĂȘte daffiche comme la cannelle") + Tweeper().tweet("un pont de paris sen souvient sur de toi") # Authenticate to Twitter -- libgit2 0.27.0