diff --git a/dist/Ragnar-1.3.37-py3-none-any.whl b/dist/Ragnar-1.3.37-py3-none-any.whl index 7f6961a..912d59c 100644 Binary files a/dist/Ragnar-1.3.37-py3-none-any.whl and b/dist/Ragnar-1.3.37-py3-none-any.whl differ diff --git a/dist/ragnar-1.3.37.tar.gz b/dist/ragnar-1.3.37.tar.gz index 3c77851..0068389 100644 Binary files a/dist/ragnar-1.3.37.tar.gz and b/dist/ragnar-1.3.37.tar.gz differ diff --git a/ragnar.log b/ragnar.log new file mode 100644 index 0000000..96a4566 --- /dev/null +++ b/ragnar.log @@ -0,0 +1,4 @@ +2024-12-17 12:05:06,648 - ragnar - INFO - Regex trigger ([\w\d]\.[\w\d]{2,5}\/[\w\d]+|http|www) matched! +2024-12-17 12:05:06,648 - ragnar - INFO - Regex trigger \([+,(,0-9,),-]{7,} matched! +2024-12-17 12:05:06,648 - ragnar - INFO - Regex trigger ([\w\d]\.[\w\d]{2,5}\/[\w\d]+|http|www) matched! +2024-12-17 12:05:06,648 - ragnar - INFO - Regex trigger ([\w\d]\.[\w\d]{2,5}\/[\w\d]+|http|www) matched! diff --git a/src/ragnar/__init__.py b/src/ragnar/__init__.py index 3c8099a..6b4cc3d 100644 --- a/src/ragnar/__init__.py +++ b/src/ragnar/__init__.py @@ -1,17 +1,13 @@ import logging import sys - -file_handler = logging.FileHandler('ragnar.log') +file_handler = logging.FileHandler("ragnar.log") file_handler.setLevel(logging.INFO) logging.basicConfig( level=logging.DEBUG, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", - handlers=[ - logging.StreamHandler(sys.stdout), - file_handler - ], + handlers=[logging.StreamHandler(sys.stdout), file_handler], ) log = logging.getLogger(__name__) diff --git a/src/ragnar/cli.py b/src/ragnar/cli.py index a549485..1935fe1 100644 --- a/src/ragnar/cli.py +++ b/src/ragnar/cli.py @@ -1,5 +1,4 @@ import argparse -import pathlib import random import time from concurrent.futures import ThreadPoolExecutor as Executor @@ -31,6 +30,7 @@ def bot_task(username, password): log.critical(ex, exc_info=True) break + def main(): args = parse_args() usernames = [