Skip to content
This repository has been archived by the owner on May 6, 2023. It is now read-only.

Commit

Permalink
Patch (#32)
Browse files Browse the repository at this point in the history
* no need to define setup parameters

* remove guild join events

* fix: pre-commit auto fixes

Co-authored-by: julianne-stingray[bot] <92771582+julianne-stingray[bot]@users.noreply.github.com>
  • Loading branch information
Clemie McCartney and julianne-stingray[bot] authored Nov 17, 2022
1 parent 8686e32 commit 81a4bca
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 28 deletions.
6 changes: 0 additions & 6 deletions cogs/ckc.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,3 @@ async def ocr(self, ctx: InteractionContext, image: OptionTypes.ATTACHMENT):
),
ephemeral=True,
)


def setup(bot: CustomClient):
"""Let naff load the extension"""

CoolKidsClub(bot)
6 changes: 0 additions & 6 deletions cogs/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,3 @@ async def top_gg_vote(self, ctx: InteractionContext):
)
else:
await ctx.send("Voting has been temporarily disabled", ephemeral=True)


def setup(bot: CustomClient):
"""Let naff load the extension"""

help(bot)
5 changes: 0 additions & 5 deletions cogs/samp.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,3 @@ async def remove(self, ctx):
color=0x00FF00,
)
return await ctx.send(embed=embed)


def setup(bot):
# This is called by dis-snek so it knows how to load the Extension
samp(bot)
5 changes: 0 additions & 5 deletions cogs/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,8 +552,3 @@ async def wikipedia(self, ctx, search_terms: str, only_first_result: bool = Fals
show_select_menu=False,
)
await paginators.send(ctx)


def setup(bot):
# This is called by dis-snek so it knows how to load the Extension
tools(bot)
11 changes: 5 additions & 6 deletions core/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,11 @@ async def on_startup(self):
"Note: Discord needs up to an hour to load global commands / context menus. They may not appear immediately\n"
)

@listen()
async def on_guild_join(self, event: GuildJoin):
if self.is_ready:
guild = event.guild
e = Embed(color=0x53DDA4, title="Joined a Guild")
await send_guild_stats(self, e, guild, 997921447701921953)
# i'll deal with this later
# @listen()
# async def on_guild_join(self, event: GuildJoin):
# if self.is_ready:
# guild = event.guild

@listen()
async def on_guild_left(self, event: GuildLeft):
Expand Down

0 comments on commit 81a4bca

Please sign in to comment.