My ML entrepreneurship master class
Post

Build A Two Billion Dollar Discord PAGER with Only One Line of Python…



On YouTube: Build A Two Billion Dollar Discord PAGER with Only One Line of Python…

Here is a trivially simple way of using Discord webhooks to push messages to your phone. If you are looking for an easy way of getting alerts to your phone or laptop but don't want to mess around with SMTP and multi-auth, you're going to like this simple alternative.


1. Create a Discord account

Go to https://discordapp.com/ and sign up for an account if you don't already have one.


2. Create a Discord server:


Create Discord server


3. Go to server settings:


Server settings


4. Go to Webhooks and create one


Create a webhook


5. Copy the webhook


Copy the webhook


6. Run the code and page away!!


import json, requests

def PagingDiscordServer(webhook_url, text_message): return requests.post(webhook_url, data=json.dumps({ "content": text_message }), headers={ 'Content-Type': 'application/json',})

PagingDiscordServer('--ENTER YOUR WEBHOOK FULL URL--', 'Hello from ViralML.com!!')

Thanks for reading! And please share this article with a friend or colleague or two :-)


Best!
Manuel Amunategui,
Curator @ amunategui.github.io and ViralML

© Copyright ViralML.com & Manuel Amunategui