Skip to content

Commit c3352a6

Browse files
committed
Removes sponsor command
1 parent ee9fba8 commit c3352a6

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

cogs/utility.py

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
import asyncio
22
import inspect
33
import os
4-
import random
54
import re
65
import sys
76
import traceback
87
from contextlib import redirect_stdout
98
from difflib import get_close_matches
109
from io import BytesIO, StringIO
1110
from itertools import takewhile, zip_longest
12-
from json import JSONDecodeError, loads
11+
from json import JSONDecodeError
1312
from subprocess import PIPE
1413
from textwrap import indent
1514
from types import SimpleNamespace
@@ -363,28 +362,6 @@ async def about(self, ctx: commands.Context):
363362
embed.set_footer(text=footer)
364363
await ctx.send(embed=embed)
365364

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-
388365
@commands.group(invoke_without_command=True)
389366
@checks.has_permissions(PermissionLevel.OWNER)
390367
@utils.trigger_typing

0 commit comments

Comments
 (0)