|
1 | 1 | import asyncio |
2 | 2 | import inspect |
3 | 3 | import os |
4 | | -import random |
5 | 4 | import re |
6 | 5 | import sys |
7 | 6 | import traceback |
8 | 7 | from contextlib import redirect_stdout |
9 | 8 | from difflib import get_close_matches |
10 | 9 | from io import BytesIO, StringIO |
11 | 10 | from itertools import takewhile, zip_longest |
12 | | -from json import JSONDecodeError, loads |
| 11 | +from json import JSONDecodeError |
13 | 12 | from subprocess import PIPE |
14 | 13 | from textwrap import indent |
15 | 14 | from types import SimpleNamespace |
@@ -363,28 +362,6 @@ async def about(self, ctx: commands.Context): |
363 | 362 | embed.set_footer(text=footer) |
364 | 363 | await ctx.send(embed=embed) |
365 | 364 |
|
366 | | - @commands.command(aliases=["sponsor"]) |
367 | | - @checks.has_permissions(PermissionLevel.REGULAR) |
368 | | - @utils.trigger_typing |
369 | | - async def sponsors(self, ctx): |
370 | | - """Shows the sponsors of this project.""" |
371 | | - |
372 | | - async with self.bot.session.get( |
373 | | - "https://raw.githubusercontent.com/modmail-dev/modmail/master/SPONSORS.json" |
374 | | - ) as resp: |
375 | | - data = loads(await resp.text()) |
376 | | - |
377 | | - embeds = [] |
378 | | - |
379 | | - for elem in data: |
380 | | - embed = discord.Embed.from_dict(elem["embed"]) |
381 | | - embeds.append(embed) |
382 | | - |
383 | | - random.shuffle(embeds) |
384 | | - |
385 | | - session = EmbedPaginatorSession(ctx, *embeds) |
386 | | - await session.run() |
387 | | - |
388 | 365 | @commands.group(invoke_without_command=True) |
389 | 366 | @checks.has_permissions(PermissionLevel.OWNER) |
390 | 367 | @utils.trigger_typing |
|
0 commit comments