Skip to content

Commit

Permalink
Removes sponsor command
Browse files Browse the repository at this point in the history
  • Loading branch information
khakers committed Mar 25, 2024
1 parent ee9fba8 commit c3352a6
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions cogs/utility.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import asyncio
import inspect
import os
import random
import re
import sys
import traceback
from contextlib import redirect_stdout
from difflib import get_close_matches
from io import BytesIO, StringIO
from itertools import takewhile, zip_longest
from json import JSONDecodeError, loads
from json import JSONDecodeError
from subprocess import PIPE
from textwrap import indent
from types import SimpleNamespace
Expand Down Expand Up @@ -363,28 +362,6 @@ async def about(self, ctx: commands.Context):
embed.set_footer(text=footer)
await ctx.send(embed=embed)

@commands.command(aliases=["sponsor"])
@checks.has_permissions(PermissionLevel.REGULAR)
@utils.trigger_typing
async def sponsors(self, ctx):
"""Shows the sponsors of this project."""

async with self.bot.session.get(
"https://raw.githubusercontent.com/modmail-dev/modmail/master/SPONSORS.json"
) as resp:
data = loads(await resp.text())

embeds = []

for elem in data:
embed = discord.Embed.from_dict(elem["embed"])
embeds.append(embed)

random.shuffle(embeds)

session = EmbedPaginatorSession(ctx, *embeds)
await session.run()

@commands.group(invoke_without_command=True)
@checks.has_permissions(PermissionLevel.OWNER)
@utils.trigger_typing
Expand Down

0 comments on commit c3352a6

Please sign in to comment.