Browse Source

Better doc links for arguments

tags/v1.2.2
parent
commit
39f2cea4ed
Signed by: StDingenskirchen GPG Key ID: 14FE9712CC42FE8B
4 changed files with 9 additions and 7 deletions
  1. +4
    -3
      blimp/cogs/reminders.py
  2. +1
    -1
      blimp/cogs/slowmode.py
  3. +3
    -2
      blimp/cogs/tools.py
  4. +1
    -1
      pyproject.toml

+ 4
- 3
blimp/cogs/reminders.py View File

@@ -71,7 +71,8 @@ class Reminders(Blimp.Cog):
raise
finally:
self.bot.database.execute(
"DELETE FROM reminders_entries WHERE id=:id", {"id": entry["id"]},
"DELETE FROM reminders_entries WHERE id=:id",
{"id": entry["id"]},
)

@commands.group()
@@ -137,8 +138,8 @@ class Reminders(Blimp.Cog):
):
"""Add a timed reminder for yourself.

`when` can be either a [duration]($manual#arguments) from now or a [time
stamp]($manual#arguments). Either way, it determines when the reminder will fire.
`when` can be either a [duration]($manual#durations) from now or a [time
stamp]($manual#timestamps). Either way, it determines when the reminder will fire.

`text` is your reminder text. You can leave this empty.



+ 1
- 1
blimp/cogs/slowmode.py View File

@@ -29,7 +29,7 @@ class Slowmode(Blimp.Cog):

`channel` is the channel to target, if left empty, BLIMP works with the current channel.

`duration` is a [duration]($manual#arguments). If over 6 hours, the bot will manually
`duration` is a [duration]($manual#durations). If over 6 hours, the bot will manually
enforce slowmode by deleting messages that have been posted too soon since the last one. Set
to a zero duration to disable slowmode.



+ 3
- 2
blimp/cogs/tools.py View File

@@ -56,7 +56,7 @@ class Tools(Blimp.Cog):

`category` is the channel category that should be inspected.

`duration` is a [duration]($manual#arguments). Channels that haven't received any messages
`duration` is a [duration]($manual#durations). Channels that haven't received any messages
during this time are considered stale and will be printed. Defaults to two days."""

channels = []
@@ -278,7 +278,8 @@ class Tools(Blimp.Cog):
last_ts = last_ts - timedelta(microseconds=last_ts.microsecond)

archive_embed = discord.Embed(
title=f"#{channel.name}", color=ctx.Color.I_GUESS,
title=f"#{channel.name}",
color=ctx.Color.I_GUESS,
).add_field(
name="Transcript",
value=f"From {first_ts}\nTo {last_ts}\n{len(messages)} messages",


+ 1
- 1
pyproject.toml View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "blimp"
version = "1.2.1"
version = "1.2.2"
description = "The BLIMP Levitating Intercommunication Management Programme, a Discord bot."
authors = ["Cassidy Dingenskirchen <admin@15318.de>"]
license = "AGPL-3.0"


Loading…
Cancel
Save