feat(Tweeper): Executable, pause before tweet

parent 982d93d8
#! /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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment