Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Hiro
GetTor
Commits
815e4571
Commit
815e4571
authored
Oct 16, 2019
by
Hiro
🏄
Browse files
Add time wait to send twitter direct message
parent
e486ac7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
gettor/services/twitter/twitterdm.py
View file @
815e4571
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment