Commit 815e4571 authored by Hiro's avatar Hiro 🏄
Browse files

Add time wait to send twitter direct message

parent e486ac7a
......@@ -15,6 +15,7 @@ from __future__ import absolute_import
import gettext
import hashlib
import json
import time
import configparser
......@@ -87,6 +88,7 @@ class Twitterdm(object):
twitter_id, message
)
if post_data.status_code == 200:
time.sleeps(30)
self.twitter_callback
else:
self.twitter_errback
......
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