diff --git a/README.md b/README.md index f677357..bad0fa9 100644 --- a/README.md +++ b/README.md @@ -17,10 +17,30 @@ The script can send scheduled messages (f.e. every hour, every day, etc.) or one 4. If the loop is disabled - the account is deleted from the queue after sending the first message ## First start -1. Install python +1. Install python v 3.10 + + ```python + sudo apt update + sudo apt install software-properties-common -y + sudo add-apt-repository ppa:deadsnakes/ppa + sudo apt install python3.10 -y + python3.10 --version + + + + +1.1 Install Python PIP with 3.10 https://www.linuxcapable.com/how-to-install-python-3-10-on-ubuntu-22-04-lts/ хороший мануал по установке, но можно использовать команды ниже + + + sudo apt install python3-pip + sudo wget https://bootstrap.pypa.io/get-pip.py + sudo python3.10 get-pip.py + sudo python3.10 -m pip install --upgrade pip + sudo pip3.10 --version + 2. Download the repo 3. Run cmd, navigate to the project folder -4. Run the command `pip install -r requirements.txt` to install all required dependencies +4. Run the command `sudo python3.10 -m pip install -r requirements.txt` to install all required dependencies 5. Prepare data in the 'data/accounts.txt' file. 1 line = 1 account. Check the 'data/accounts_sample' file to see the correct format. 1. custom_name_for_logs: choose any name, for logging purposes 2. discord_token: discord token that can be obtained from the browser's Network tab @@ -32,5 +52,5 @@ The script can send scheduled messages (f.e. every hour, every day, etc.) or one 8. max_delay_sec: max delay before sending the message in seconds 9. start_on_the_run_True_or_False: set True if you wish the bot to send the first message without delays right after you run the script, and set False if you wish to use the delay before the first message 10. loop_True_or_False: set True if you wish to send messages in the loop, set False if you wish to send only 1 message -6. Run the bot using the `python discord_bulk_msg_sender.py` command +6. Run the bot using the `sudo python3.10 discord_bulk_msg_sender.py` command 7. Failed accounts can be found in the 'data/failed_accounts' folder diff --git a/data/accounts_sample.txt b/data/accounts_sample.txt index b16a56c..a8dab32 100644 --- a/data/accounts_sample.txt +++ b/data/accounts_sample.txt @@ -1,3 +1,3 @@ -custom_name_for_logs|discord_token|http_proxy|useragent|discord_chat_id|['message1', 'message2', 'message3'.....]|min_delay_sec|max_delay_sec|start_on_the_run_True_or_False|loop_True_or_False -custom_name_for_logs|discord_token|http_proxy|useragent|discord_chat_id|['message1', 'message2', 'message3'.....]|min_delay_sec|max_delay_sec|start_on_the_run_True_or_False|loop_True_or_False -custom_name_for_logs|discord_token|http_proxy|useragent|discord_chat_id|['message1', 'message2', 'message3'.....]|min_delay_sec|max_delay_sec|start_on_the_run_True_or_False|loop_True_or_False \ No newline at end of file +custom_name_for_logs|discord_token|http_proxy|useragent|discord_chat_id|['message1', 'message2', 'message3'.....]|min_delay_sec|max_delay_sec|True|True +custom_name_for_logs|discord_token|http_proxy|useragent|discord_chat_id|['message1', 'message2', 'message3'.....]|min_delay_sec|max_delay_sec|True|True +custom_name_for_logs|discord_token|http_proxy|useragent|discord_chat_id|['message1', 'message2', 'message3'.....]|min_delay_sec|max_delay_sec|True|True diff --git a/discord_bulk_msg_sender.py b/discord_bulk_msg_sender.py index c5eaf4d..d4fda7c 100644 --- a/discord_bulk_msg_sender.py +++ b/discord_bulk_msg_sender.py @@ -13,13 +13,11 @@ f = Figlet(font='5lineoblique') -print(f.renderText('Busher')) -print('Telegram channel: @CryptoKiddiesClub') +print(f.renderText('tera2206')) print('Telegram chat: @CryptoKiddiesChat') -print('Twitter: @CryptoBusher\n') -def init_raw_accounts(_raw_accounts: list) -> list: +def init_raw_accounts(_raw_accounts: list[str]) -> list[DiscordAccount]: _account_objects = [] for account in _raw_accounts: try: