discord china_如何在Ubuntu 18.04上使用Discord Webhooks获取有关您的网站状态的通知

本教程介绍了如何在Ubuntu 18.04服务器上配置Discord Webhooks,以在网站出现问题时通过Discord接收通知。你将创建一个Bash脚本检查网站状态,当网站出现403或404错误时,通过Webhook发送警报。
摘要由CSDN通过智能技术生成

discord china

The author selected the Apache Software Foundation to receive a donation as part of the Write for DOnations program.

作者选择了Apache Software Foundation作为Write for DOnations计划的一部分来接受捐赠。

介绍 (Introduction)

When you have critical websites you’ll want to know when they are experiencing any issues so you can fix them before there’s an impact on your users. One way to receive notifications is to set up alerts through a text-based chat system.

当您拥有重要的网站时,您将想知道它们何时遇到任何问题,以便在对用户造成影响之前进行修复。 接收通知的一种方法是通过基于文本的聊天系统设置警报。

Discord is a hosted chat system similar to Slack. With Discord, you can set up a free messaging system that lets you communicate with text messages, images, audio, and video. While it offers premium features, you can sign up for free, and it has clients available for Windows, macOS, Linux, Android, and iOS.

Discord是类似于Slack的托管聊天系统。 使用Discord,您可以设置一个免费的消息传递系统,使您可以与文本消息,图像,音频和视频进行通信。 它提供高级功能,但您可以免费注册 ,并且具有适用于Windows,macOS,Linux,Android和iOS的客户端。

In this tutorial, you will configure your own Discord server, create a Discord webhook, write a Bash script that will check the status of a list of websites, and test notifications from your server to your Discord channel.

在本教程中,您将配置自己的Discord服务器,创建Discord Webhook,编写一个Bash脚本以检查网站列表的状态,并测试从服务器到Discord频道的通知。

先决条件 (Prerequisites)

Before you begin this guide you’ll need the following:

在开始本指南之前,您需要满足以下条件:

第1步-设置Discord Webhook (Step 1 — Setting Up Your Discord Webhook)

Once you have opened your Discord account you can create your own private Discord server.

打开Discord帐户后,您可以创建自己的私有Discord服务器。

First, log in to your Discord account in your browser or launch your Discord app and click on the Create a server button.

首先, 浏览器中登录到Discord帐户启动Discord应用程序 ,然后单击“ 创建服务器”按钮。

Then pick a name for your server and click on the Create a server button.

然后为服务器选择一个名称,然后单击“ 创建服务器”按钮。

Next, you will configure your Discord webhook. The webhooks are unique URLs that you can use to link services together. Discord’s webhooks allow you to automate your messages and send data updates to your Discord text channels.

接下来,您将配置Discord Webhook。 Web钩子是唯一的URL,可用于将服务链接在一起。 Discord的webhook允许您自动执行消息并将数据更新发送到Discord文本通道。

In this tutorial, yo

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值