Git Product home page Git Product logo

discordbotnotifier's Introduction

Discord Bot Notifier

The Discord Bot Notifier script enables you to receive critical messages from a designated Discord channel on your phone via SMS using Twilio. This README will guide you through the setup and usage.

Getting Started

Prerequisites

Before getting started, make sure you have the following:

  • A Discord account and access to a Discord server where you want to monitor a specific channel.
  • A Twilio account for sending SMS notifications.

Setup Instructions

  1. Create a Discord Bot:

    • Visit the Discord Developer Portal.
    • Create a new application and add a bot to it.
    • Copy the bot token provided by Discord.
  2. Configure Twilio:

    • Sign up for an account on Twilio.
    • Obtain your Twilio account SID and authentication token from the Twilio dashboard.
  3. Clone the Repository:

    • Clone this repository to your local machine or server where you intend to run the script.
  4. Install Dependencies:

    • Open your terminal and navigate to the project directory.

    • Run the following command to install the required dependencies:

      pip install discord pytwilio
  5. Modify the Script:

    • Open the bot_notifier.py script in a code editor.

    • Replace the following placeholders with your actual credentials:

      • YOUR_DISCORD_BOT_TOKEN: Replace with your Discord bot token obtained in step 1.
      • YOUR_TWILIO_ACCOUNT_SID: Replace with your Twilio account SID.
      • YOUR_TWILIO_AUTH_TOKEN: Replace with your Twilio authentication token.
      • YOUR_PHONE_NUMBER: Replace with your phone number in E.164 format (e.g., +1234567890).
      • TWILIO_PHONE_NUMBER: Replace with your Twilio phone number.
  6. Configure the Discord Channel and Phone Number:

    • Modify the message.channel.id to match the ID of the Discord channel you want to monitor.
    • Ensure that you've provided both your phone number and the Twilio phone number accurately.
  7. Run the Script:

    • Execute the script using the following command:

      python bot_notifier.py

Usage

Once the script is running, it will continuously monitor the specified Discord channel. When a new message is posted in that channel, you will receive an SMS notification on your configured phone number via Twilio.

Important Notes

  • Ensure that the Discord bot has the necessary permissions in your Discord server, including reading messages from the designated channel.
  • Use this script responsibly and respect the privacy and terms of service of both Discord and Twilio.

Feel free to customize and extend the script to suit your specific needs. Enjoy staying connected with your Discord community, even while on the go!

discordbotnotifier's People

Contributors

chibbss avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.