- Create repo on GitHub where you'll put your files.
- Use jsDeliver or statically to get your assets.
Here is repo I'm using:
https://github.com/jcubic/static
And links to files look like this:
| DELAY 1000 | |
| GUI r | |
| DELAY 500 | |
| STRING cmd | |
| SHIFT CTRL ENTER | |
| DELAY 1000 | |
| LEFT | |
| ENTER | |
| DELAY 1000 |
| domain = 'watermark' # just an example of how to use bytesio with PIL, works better if you know more about the images you're using instead of using random ones which can have random dimensions. | |
| import aiohttp | |
| from urllib.parse import unquote | |
| from io import BytesIO | |
| from PIL import Image, ImageDraw, ImageFont | |
| async def returnRandomCat(): | |
| async with aiohttp.ClientSession() as session: | |
| async with session.get("https://aws.random.cat/meow") as resp: |
| import discord, secrets | |
| class TextInput: | |
| """for storing our text input data""" | |
| def __init__(self, payload): | |
| self.type = payload['type'] | |
| self.custom_id = payload['custom_id'] | |
| self.style = payload['style'] | |
| self.label = payload['label'] | |
| self.min_length = payload.get('min_length') |
Here is repo I'm using:
https://github.com/jcubic/static
And links to files look like this:
Discord is now slowly rolling out the ability to send colored messages within code blocks. It uses the ANSI color codes, so if you've tried to print colored text in your terminal or console with Python or other languages then it will be easy for you.
To be able to send a colored text, you need to use the ansi language for your code block and provide a prefix of this format before writing your text:
\u001b[{format};{color}m
Fun fact : a lightbulb has been on since 1901 in a region of siberia. Ivan Popov discovered that electricity could be extracted from the ground in the region as the soil is mineral rich, and the water table is high. This discovery has allowed the earth to accomplish this remarkable feat
Fun fact : the covalent character of ionic bonds was discovered as a result of a similar mathematical error. George Smith made a mathematical error while calculating the lattice energy of a compound, and ended up with the result he expected despite the error. When his assistant discovered the error, he devised the theory used today
Fun fact : Hydrated salts were the result of a paranoid geologist. Johnathan Everard began the practice of baking samples obtained in the field to kill microbes, believing that doing so would prevent him from contracting tetanus. A difference in mass before and after baking observed with one of the samples led him to this path paving discovery
Fun fact : In 2015 Dalia Scott, a student at the M
| """Making a post request to Webhook, without using discord.py""" | |
| import aiohttp | |
| webhook_url = "your_webhook's_url" # URL of the Webhook (make sure NOT TO SHARE IT WITH ANYONE.) | |
| # JSON data to send to the Webhook. | |
| # You can find the data payload at https://discord.com/developers/docs/resources/webhook#execute-webhook | |
| data = { | |
| 'content': 'Hello, world!', |
| #!/bin/bash | |
| cd /mnt/user/appdata/NginxProxyManager/nginx | |
| echo "IPV4" >> new.conf | |
| echo "" >> new.conf | |
| curl -sSL https://www.cloudflare.com/ips-v4 | awk '{print "allow",$1,";"}' >> new.conf | |
| echo "IPV6" >> new.conf | |
| echo "" >> new.conf | |
| curl -sSL https://www.cloudflare.com/ips-v6 | awk '{print "allow",$1,";"}' >> new.conf |
These are the breaking changes of discord.py version 2.0.
"Breaking change" includes: