All Projects → finlaysawyer → discord-uptime

finlaysawyer / discord-uptime

Licence: MIT License
Discord bot to monitor uptime of services using ping and http requests

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to discord-uptime

tmerc-cogs
Cogs for the Red Discord bot.
Stars: ✭ 35 (-23.91%)
Mutual labels:  discord-bot, discord-py
Licensy
Discord bot that manages expiration of roles with subscriptions!
Stars: ✭ 47 (+2.17%)
Mutual labels:  discord-bot, discord-py
mediaforge
A Discord bot for editing and creating videos, images, GIFs, and more!
Stars: ✭ 45 (-2.17%)
Mutual labels:  discord-bot, discord-py
1bot
"One bot, several uses". 1Bot is a multipurpose bot that has all the moderation tools you need, lots of useful utility commands, and a bunch of fun commands that we all need once in a while.
Stars: ✭ 19 (-58.7%)
Mutual labels:  discord-bot, discord-py
Discord-Tools
VSCode extension allowing the integration of a Discord chat, bot templates, snippets, themes and more!
Stars: ✭ 91 (+97.83%)
Mutual labels:  discord-bot, discord-py
neo
A Discord bot built to satisfy a multitude of needs
Stars: ✭ 16 (-65.22%)
Mutual labels:  discord-bot, discord-py
sudoBot
A discord bot written in Python
Stars: ✭ 28 (-39.13%)
Mutual labels:  discord-bot, discord-py
Discord-Games
A library for making implementing conventional games into your discord bot, easier.
Stars: ✭ 31 (-32.61%)
Mutual labels:  discord-bot, discord-py
Guildbomb-Discord-Bot
💣 Guildbomb is a simple discord-bot, which shows you how easy it can be to raid a discord-server within one minute, so everybody will be banned, all emojis will be deleted, all invites will be deleted, every role and every channel too..
Stars: ✭ 182 (+295.65%)
Mutual labels:  discord-bot, discord-py
Kreusada-Cogs
Cogs for Red-DiscordBot
Stars: ✭ 26 (-43.48%)
Mutual labels:  discord-bot, discord-py
ksoftapi.py
Official API Wrapper for KSoft.Si API
Stars: ✭ 31 (-32.61%)
Mutual labels:  discord-bot, discord-py
Axley
A simple multi-purpose Discord bot being made using Discord.py API wrapper..
Stars: ✭ 16 (-65.22%)
Mutual labels:  discord-bot, discord-py
ValorantStoreChecker-discord-bot
Valorant Utility Bot
Stars: ✭ 154 (+234.78%)
Mutual labels:  discord-bot, discord-py
Music-Discord-Bot
A music Discord bot with more than 30+ commands which allows to play music on your server efficiently. Supports Youtube, Spotify, Deezer and Soundcloud links. Skips intros and blanks in the music with Sponsorblock.
Stars: ✭ 57 (+23.91%)
Mutual labels:  discord-bot, discord-py
emojis
An emoji management bot for Discord.
Stars: ✭ 18 (-60.87%)
Mutual labels:  discord-bot, discord-py
mass-dm-discord
A MassDM selfbot which is working in 2021. Only for educational purposes 🥱🚀
Stars: ✭ 87 (+89.13%)
Mutual labels:  discord-bot, discord-py
Corona-Tracker-Bot
Discord bot for coronavirus (COVID-19) , With Ai [Machine learning algorithms] integrated into it
Stars: ✭ 26 (-43.48%)
Mutual labels:  discord-bot, discord-py
netcheck
A shell script to check and log when your internet connection goes down.
Stars: ✭ 138 (+200%)
Mutual labels:  ping, uptime
plumeria
🤖 A Discord chat bot with rich data piping between commands
Stars: ✭ 35 (-23.91%)
Mutual labels:  discord-bot, discord-py
Discord-Spammer
Advanced Discord Spammer with multiple options and optional proxys
Stars: ✭ 51 (+10.87%)
Mutual labels:  discord-bot, discord-py

discord-uptime

Code style: black security: bandit

Discord Uptime is a Discord bot that allows you to monitor the uptime of services using ICMP ping, tcp and http requests. There are also commands avaliable to make manual requests. Built using discord.py, ping3 and aiohttp.

Installation

Requires Python 3.6+

Install dependencies:

pip install -r requirements.txt

Bot setup (Rename config.example.json and edit the default values):

  • token - Discord bot token
  • prefix - Discord bot prefix
  • activity_type - Activity type for bot status (must be one of playing, streaming, listening, watching)
  • activity_name - Text for bot status
  • disable_help - If true, the default help command will be disabled
  • hide_ips - If true, any IP addresses in notifications or the status command will be hidden
  • notification_channel - Channel ID where down/up notifications will be sent
  • retries - How many retries to complete before flagging a server with down status
  • role_to_mention - Role ID which will be tagged in down/up notifications
  • secs_between_ping - How many seconds between each uptime check
  • timeout - How many seconds before a ping or HTTP request should timeout

No privileged intents are currently needed to run the bot.

Servers Configuration

Servers should be setup similar to the examples already in server.json:

  • There are three supported types: http, tcp and ping
[
    {
      "name": "Google",
      "type": "http",
      "address": "google.com"
    },
    {
      "name": "Gmail SMTP",
      "type": "tcp",
      "address": "smtp.gmail.com:465",
    },
    {
      "name": "Cloudflare",
      "type": "ping",
      "address": "1.1.1.1"
    }
]

Commands

Default Prefix: >

  • ping <address> [pings] - Pings an address once, or for the amount specified via pings and returns the delay in ms
  • http <address> - Performs a HTTP request to the specified address and returns the response code
  • status - Displays the status of all servers setup in servers.json

Screenshots

Status Command

status

Uptime & Downtime Notifications

uptime

Hide IP addresses

hideips

Contributing

Contributions are very welcome. I use flake8, black, and bandit as linting tools and there is a pre-commit config in the repo to help automate this process as much as possible.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].