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