Skip to content
Open

1 #1

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 23 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
6 changes: 3 additions & 3 deletions data/accounts_sample.txt
Original file line number Diff line number Diff line change
@@ -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
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
6 changes: 2 additions & 4 deletions discord_bulk_msg_sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down