aboutsummaryrefslogtreecommitdiff
path: root/cogs/twitter.py
diff options
context:
space:
mode:
authorMango0x45 <thomasvoss@live.com>2020-09-30 11:31:41 +0000
committerMango0x45 <thomasvoss@live.com>2020-09-30 11:31:41 +0000
commitfb1653c8ff601ae8fbf8480b09cf2442e65a75ec (patch)
tree72c09d8bd2f2d64d23ba80d40f65ded156cd963d /cogs/twitter.py
parent8586fb2f1a1397d22d0847520285e8b60f19cf9b (diff)
downloadsteve-bot-fb1653c8ff601ae8fbf8480b09cf2442e65a75ec.tar
steve-bot-fb1653c8ff601ae8fbf8480b09cf2442e65a75ec.tar.gz
steve-bot-fb1653c8ff601ae8fbf8480b09cf2442e65a75ec.tar.bz2
steve-bot-fb1653c8ff601ae8fbf8480b09cf2442e65a75ec.tar.lz
steve-bot-fb1653c8ff601ae8fbf8480b09cf2442e65a75ec.tar.xz
steve-bot-fb1653c8ff601ae8fbf8480b09cf2442e65a75ec.tar.zst
steve-bot-fb1653c8ff601ae8fbf8480b09cf2442e65a75ec.zip
Added type hints to look smart
Diffstat (limited to 'cogs/twitter.py')
-rwxr-xr-xcogs/twitter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cogs/twitter.py b/cogs/twitter.py
index d633b8e..ff2ea8f 100755
--- a/cogs/twitter.py
+++ b/cogs/twitter.py
@@ -11,7 +11,7 @@ class StreamListener(tweepy.StreamListener):
with open("./config.json") as f:
self.config = json.load(f)
- def on_error(self, status_code):
+ def on_error(self, status_code: int) -> bool:
if status_code == 420:
print("Rate limit reached. ")
# returning False in on_error disconnects the stream