This is a Discord bot that sends SMS messages using a Google Spreadsheet.
- Python 3.x
- The following Python libraries:
- discord
- requests
- gspread
- oauth2client
- Make sure you have the required libraries installed. You can install them using the following command:
pip install discord requests gspread oauth2client
- Download the JSON credentials file from the Google account service and save it as
credentials.json
. You can obtain these credentials by following the steps in the Google Drive API documentation. - Open the
bot.py
file and replace the following values:- SHEET-URL-HERE: Replace this with the URL of the Google Spreadsheet that contains the phone numbers.
- DISCORD-BOT-API: Replace this with the Discord bot API token.
The bot utilizes ADB (Android Debug Bridge) and the shellms package for sending SMS messages. Make sure you have ADB installed on your system and the shellms
package available. You can install ADB by following the instructions specific to your operating system.
- Run the
bot.py
file:
python bot.py
- In Discord, use the
/sendout
command to send a message. The bot will prompt you to enter the message to send. - The bot will send the message to the phone numbers specified in the Google Spreadsheet.
That's it! Now you can use the bot to send SMS messages through Discord.
Please note that this project is an example and may require modifications to fit your specific needs.
I hope this is what you're looking for. If you have any other questions, feel free to ask.