GithubHelp home page GithubHelp logo

3818919 / eop_server_status Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 11 KB

This bot utilizes Discord's webhook feature to send real-time alerts whenever a private server goes either online or offline.

License: MIT License

Python 100.00%
endless-online python

eop_server_status's Introduction

Server Status Alert Bot for Discord

This bot sends alerts on Discord about the status of a server, indicating when it goes online or offline.

Configuration

To customize your alerts, use the config.ini file. You can modify the following properties:

Server Details

  • Server Name: Specify the name of your private EO server.
  • Server IP: Enter the IP address of your server.
  • Server Port: Define the port number your server uses.
  • Server Logo: Choose a logo, either from your EO server or Discord server.

Discord Notifications

  • Discord Role: Set the Discord role for pinging members. Default is @here. For custom roles:
    1. Enable Developer Mode: Discord Settings > Advanced > Developer Mode.
    2. On your server's Member Side Panel, left-click a member.
    3. Right-click one of their roles.
    4. Select Copy Role ID.
    5. Replace @here in config.ini with <&ROLEID> (e.g., <&123456789>).

Alert Customization

  • Online Title: Title for online status alerts (e.g., Server Online).
  • Online Message: Message for online status (e.g., Server is currently online).
  • Offline Title: Title for offline status alerts (e.g., Server Offline).
  • Offline Message: Message for offline status (e.g., Server is currently offline).
  • Webhook URL: Your Discord webhook URL for sending alerts.
  • Footer: Custom footer text for alerts (e.g., Provided by Vexx).
  • Timer: Interval in seconds for status checks (default is 30 seconds).

Discord Alert

Setting Up Discord Webhook

To set up a Discord webhook:

  1. Navigate to Server Settings > Integrations > Webhooks.
  2. Create a new webhook, name it, select a posting channel, and set an image/logo.
  3. Click Copy Webhook and paste the URL into config.ini after WEBHOOK = https://your-discord-webhook.com.

Server Settings Integrations Webhook Setup

Running the Bot

The bot is built with Python 3.12.1. Install the required packages using pip:

pip install configparser
pip install requests==2.6.0

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.