Time stamps

This commit is contained in:
Lucy Joshua 2023-03-22 14:35:11 +02:00 committed by GitHub
parent 2351f608ae
commit 8b728793ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,18 +1,19 @@
import sys import sys
import tweepy import tweepy
import time
from BotYamPoster import BotYamPoster from BotYamPoster import BotYamPoster
from BotYamPoster import init_streamobject from BotYamPoster import init_streamobject
from connector import Connector from connector import Connector
def main(): def main():
print("BOT-YAM - VERSION 3.0.2 >>>>") print(time.time() + ": " + "BOT-YAM - VERSION 3.0.2 >>>>")
conn = Connector() conn = Connector()
stream = init_streamobject(conn) stream = init_streamobject(conn)
print("Adding stream rules...") print(time.time() + ": " + "Adding stream rules...")
stream.add_rules(tweepy.StreamRule(conn.get_victims()['stream_filter'])) stream.add_rules(tweepy.StreamRule(conn.get_victims()['stream_filter']))
stream.add_rules(tweepy.StreamRule("@FromBotYam")) stream.add_rules(tweepy.StreamRule("@FromBotYam"))
# Start listening for tweets # Start listening for tweets
print("Starting Twitter stream!") print(time.time() + ": " + "Starting Twitter stream!")
stream.filter(expansions="author_id") stream.filter(expansions="author_id")
if __name__ == "__main__": if __name__ == "__main__":