aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Kronifer <[email protected]>2021-03-03 16:39:05 +0000
committerGravatar Kronifer <[email protected]>2021-03-03 16:39:05 +0000
commit3b0949c96926fa30aa650bfd9c9a43e4fd52521f (patch)
tree3278dae6ac2a028be6c8ae0d9658f801966298ab
parentasyncio start (diff)
linting
-rw-r--r--Pipfile1
-rw-r--r--Pipfile.lock76
-rw-r--r--bot/exts/easter/earth_photos.py14
3 files changed, 79 insertions, 12 deletions
diff --git a/Pipfile b/Pipfile
index 1a2d464e..1d1df3d7 100644
--- a/Pipfile
+++ b/Pipfile
@@ -16,6 +16,7 @@ PyYAML = "~=5.3.1"
async-rediscache = {extras = ["fakeredis"], version = "~=0.1.4"}
emojis = "~=0.6.0"
requests = "~=2.25.1"
+pre-commit = "*"
[dev-packages]
flake8 = "~=3.8"
diff --git a/Pipfile.lock b/Pipfile.lock
index 34cd08cf..b58db761 100644
--- a/Pipfile.lock
+++ b/Pipfile.lock
@@ -1,7 +1,7 @@
{
"_meta": {
"hash": {
- "sha256": "53409f1c6726e95cf348740b1dc55124b77a1f327aea273dce041b5056270b2e"
+ "sha256": "434b76f6a372bf3ddc418d7b6bdba4d8906cbebb76553ffebf0b15d572e83487"
},
"pipfile-spec": 6,
"requires": {
@@ -50,6 +50,13 @@
],
"version": "==1.3.1"
},
+ "appdirs": {
+ "hashes": [
+ "sha256:7d5d0167b2b1ba821647616af46a749d1c653740dd0d2415100fe26e27afdf41",
+ "sha256:a841dacd6b99318a741b166adb07e19ee71a274450e68237b4650ca1055ab128"
+ ],
+ "version": "==1.4.4"
+ },
"arrow": {
"hashes": [
"sha256:e098abbd9af3665aea81bdd6c869e93af4feb078e98468dd351c383af187aac5",
@@ -143,6 +150,14 @@
],
"version": "==1.14.5"
},
+ "cfgv": {
+ "hashes": [
+ "sha256:32e43d604bbe7896fe7c248a9c2276447dbef840feb28fe20494f62af110211d",
+ "sha256:cf22deb93d4bcf92f345a5c3cd39d3d41d6340adc60c78bbbd6588c384fda6a1"
+ ],
+ "markers": "python_full_version >= '3.6.1'",
+ "version": "==3.2.0"
+ },
"chardet": {
"hashes": [
"sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae",
@@ -161,6 +176,13 @@
"index": "pypi",
"version": "==1.5.1"
},
+ "distlib": {
+ "hashes": [
+ "sha256:8c09de2c67b3e7deef7184574fc060ab8a793e7adbb183d942c389c8b13c52fb",
+ "sha256:edf6116872c863e1aa9d5bb7cb5e05a022c519a4594dc703843343a9ddd9bff1"
+ ],
+ "version": "==0.3.1"
+ },
"emojis": {
"hashes": [
"sha256:7da34c8a78ae262fd68cef9e2c78a3c1feb59784489eeea0f54ba1d4b7111c7c",
@@ -176,6 +198,13 @@
],
"version": "==1.4.5"
},
+ "filelock": {
+ "hashes": [
+ "sha256:18d82244ee114f543149c66a6e0c14e9c4f8a1044b5cdaadd0f82159d6a6ff59",
+ "sha256:929b7d63ec5b7d6b71b0fa5ac14e030b3f70b75747cef1b10da9b879fef15836"
+ ],
+ "version": "==3.0.12"
+ },
"fuzzywuzzy": {
"hashes": [
"sha256:45016e92264780e58972dca1b3d939ac864b78437422beecebb3095f8efd00e8",
@@ -236,6 +265,14 @@
"markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
"version": "==1.1.0"
},
+ "identify": {
+ "hashes": [
+ "sha256:2179e7359471ab55729f201b3fdf7dc2778e221f868410fedcb0987b791ba552",
+ "sha256:2a5fdf2f5319cc357eda2550bea713a404392495961022cf2462624ce62f0f46"
+ ],
+ "markers": "python_full_version >= '3.6.1'",
+ "version": "==2.1.0"
+ },
"idna": {
"hashes": [
"sha256:b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6",
@@ -267,6 +304,13 @@
"markers": "python_version >= '3.5'",
"version": "==4.7.6"
},
+ "nodeenv": {
+ "hashes": [
+ "sha256:5304d424c529c997bc888453aeaa6362d242b6b4631e90f3d4bf1b290f1c84a9",
+ "sha256:ab45090ae383b716c4ef89e690c41ff8c2b257b85b309f01f3654df3d084bd7c"
+ ],
+ "version": "==1.5.0"
+ },
"pillow": {
"hashes": [
"sha256:0295442429645fa16d05bd567ef5cff178482439c9aad0411d3f0ce9b88b3a6f",
@@ -301,6 +345,14 @@
"index": "pypi",
"version": "==7.2.0"
},
+ "pre-commit": {
+ "hashes": [
+ "sha256:16212d1fde2bed88159287da88ff03796863854b04dc9f838a55979325a3d20e",
+ "sha256:399baf78f13f4de82a29b649afd74bef2c4e28eb4f021661fc7f29246e8c7a3a"
+ ],
+ "index": "pypi",
+ "version": "==2.10.1"
+ },
"pycares": {
"hashes": [
"sha256:050f00b39ed77ea8a4e555f09417d4b1a6b5baa24bb9531a3e15d003d2319b3f",
@@ -451,6 +503,14 @@
"markers": "python_version >= '3.0'",
"version": "==2.2"
},
+ "toml": {
+ "hashes": [
+ "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b",
+ "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"
+ ],
+ "markers": "python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'",
+ "version": "==0.10.2"
+ },
"urllib3": {
"hashes": [
"sha256:1b465e494e3e0d8939b50680403e3aedaa2bc434b7d5af64dfd3c958d7f5ae80",
@@ -459,6 +519,14 @@
"markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'",
"version": "==1.26.3"
},
+ "virtualenv": {
+ "hashes": [
+ "sha256:147b43894e51dd6bba882cf9c282447f780e2251cd35172403745fc381a0a80d",
+ "sha256:2be72df684b74df0ea47679a7df93fd0e04e72520022c57b479d8f881485dbe3"
+ ],
+ "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
+ "version": "==20.4.2"
+ },
"yarl": {
"hashes": [
"sha256:040b237f58ff7d800e6e0fd89c8439b841f777dd99b4a9cca04d6935564b9409",
@@ -593,11 +661,11 @@
},
"identify": {
"hashes": [
- "sha256:9cdd81e5d2b6e76c3006d5226316dd947bd6324fbeebb881bec489202fa09d3a",
- "sha256:b99aa309329c4fea679463eb35d169f3fbe13e66e9dd6162ad1856cbeb03dcbd"
+ "sha256:2179e7359471ab55729f201b3fdf7dc2778e221f868410fedcb0987b791ba552",
+ "sha256:2a5fdf2f5319cc357eda2550bea713a404392495961022cf2462624ce62f0f46"
],
"markers": "python_full_version >= '3.6.1'",
- "version": "==2.0.0"
+ "version": "==2.1.0"
},
"mccabe": {
"hashes": [
diff --git a/bot/exts/easter/earth_photos.py b/bot/exts/easter/earth_photos.py
index 26beda79..8e90c9e7 100644
--- a/bot/exts/easter/earth_photos.py
+++ b/bot/exts/easter/earth_photos.py
@@ -20,19 +20,17 @@ class EarthPhotos(commands.Cog):
async with ctx.typing():
async with aiohttp.ClientSession as session:
async with session.get(
- 'https://api.unsplash.com/photos/random?query=earth&client_id=' + UnClientId) as r:
+ 'https://api.unsplash.com/photos/random?query=earth&client_id=' + UnClient_id) as r:
jsondata = await r.json()
linksdata = jsondata.get("urls")
+ embedlink = linksdata.get("full")
downloadlinksdata = jsondata.get("links")
async with session.get(
downloadlinksdata.get("download_location") + "?client_id=" + UnClient_id) as er:
- pass
- await ctx.send("Still a work in progress, coming soon.")
-
-
-
-
-
+ er.status()
+ embed = discord.Embed(title="In progress")
+ embed.set_photo(url=embedlink)
+ await ctx.send(embed=embed)
def setup(bot: commands.Bot) -> None: