Skip to content

Commit 2ace13f

Browse files
committed
Updated sponsors
1 parent a69d79e commit 2ace13f

File tree

3 files changed

+41
-7
lines changed

3 files changed

+41
-7
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,13 @@ Real Madrid:
188188
<a href='https://discord.gg/realmadrid'>
189189
<img height=100 src='https://i.imgur.com/9Rat2Qb.png' style='margin:5px'>
190190
</a>
191+
<br>
192+
<br>
193+
Discord Advice Center:
194+
<br>
195+
<a href='https://discord.gg/nkMDQfuK'>
196+
<img height=100 src='https://i.imgur.com/1hrjcHd.png' style='margin:5px'>
197+
</a>
191198

192199
Become a sponsor on [Patreon](https://patreon.com/kyber).
193200

SPONSORS.json

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"value": "[**Click Here**](https://www.youtube.com/channel/UCgSmBJD9imASmJRleycTCwQ?sub_confirmation=1)"
2222
},
2323
{
24-
"name": "Discord Server!",
24+
"name": "Discord Server",
2525
"value": "[**Click Here**](https://discord.gg/V8ErqHb)"
2626
}
2727
]
@@ -37,7 +37,7 @@
3737
},
3838
"fields": [
3939
{
40-
"name": "Discord Server!",
40+
"name": "Discord Server",
4141
"value": "[**Click here**](https://discord.gg/BanCwptMJV)"
4242
}
4343
]
@@ -70,5 +70,25 @@
7070
}
7171
]
7272
}
73+
},
74+
{
75+
"embed": {
76+
"description": "──── 《𝐃𝐢𝐬𝐜𝐨𝐫𝐝 𝐀𝐝𝐯𝐢𝐜𝐞 𝐂𝐞𝐧𝐭𝐞𝐫 》 ────\n\n◈ We are a server aimed to meet your discord needs. We have tools, tricks and tips to grow your server and advertise your server. We offer professional server reviews and suggestions how to run it successfully as a part of our courtesy. Join the server and get the chance to add our very own BUMP BOT called DAC Advertise where you can advertise your server to other servers!\n",
77+
"color": 53380,
78+
"author": {
79+
"name": "Discord Advice Center",
80+
"url": "https://discord.gg/nkMDQfuK",
81+
"icon_url": "https://i.imgur.com/cjVtRw5.jpg"
82+
},
83+
"image": {
84+
"url": "https://i.imgur.com/1hrjcHd.png"
85+
},
86+
"fields": [
87+
{
88+
"name": "Discord Server",
89+
"value": "[**Click Here**](https://discord.gg/nkMDQfuK)"
90+
}
91+
]
92+
}
7393
}
7494
]

cogs/utility.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -356,18 +356,25 @@ async def about(self, ctx):
356356
inline=False,
357357
)
358358

359+
embed.add_field(
360+
name="Project Sponsors",
361+
value=f"Checkout the people who supported Modmail with command `{self.bot.prefix}sponsors`!",
362+
inline=False,
363+
)
364+
359365
embed.set_footer(text=footer)
360366
await ctx.send(embed=embed)
361367

362-
@commands.command()
368+
@commands.command(aliases=["sponsor"])
363369
@checks.has_permissions(PermissionLevel.REGULAR)
364370
@utils.trigger_typing
365371
async def sponsors(self, ctx):
366-
"""Shows a list of sponsors."""
367-
resp = await self.bot.session.get(
372+
"""Shows the sponsors of this project."""
373+
374+
async with self.bot.session.get(
368375
"https://raw.githubusercontent.com/kyb3r/modmail/master/SPONSORS.json"
369-
)
370-
data = loads(await resp.text())
376+
) as resp:
377+
data = loads(await resp.text())
371378

372379
embeds = []
373380

0 commit comments

Comments
 (0)