Skip to content

Commit

Permalink
[JoinPing] help for channels + docstring show (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
japandotorg committed Jun 10, 2023
1 parent e0fd575 commit 9aefcb5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions joinping/main.py
Expand Up @@ -142,6 +142,7 @@ async def jpset_msg(self, ctx, *, message: str):
async def jpset_channels(self, ctx):
"""
Set the channels where the pings will be sent on member join."""
return await ctx.send_help()

@jpset_channels.command(name="remove", aliases=["r"])
async def jpsetchan_remove(self, ctx, *channels: discord.TextChannel):
Expand Down Expand Up @@ -190,6 +191,9 @@ async def jpsetchan_add(self, ctx, *channels: discord.TextChannel):

@jpset.command(name="show", aliases=["showsettings", "settings", "setting"])
async def jpset_show(self, ctx):
"""
Show the current joinping settings.
"""
data = self.cache.setdefault(ctx.guild.id, guild_defaults)
channels = data.get("ping_channels", [])
message = data.get("ping_message", "{member.mention}")
Expand Down

0 comments on commit 9aefcb5

Please sign in to comment.