Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v7

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint_python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Lint Python
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
ref: ${{ env.ref }}
- uses: astral-sh/ruff-action@v3
Expand Down
7 changes: 3 additions & 4 deletions autopublisher/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
SOFTWARE.
"""

from datetime import datetime, timezone as dt_timezone
from datetime import datetime
from datetime import timezone as dt_timezone
from urllib.parse import urlencode

import discord
Expand Down Expand Up @@ -252,9 +253,7 @@ async def _update_view(self) -> None:
)

self.container = discord.ui.Container(accent_color=discord.Color.blurple())
self.container.add_item(
discord.ui.MediaGallery(discord.MediaGalleryItem(media=image_url))
)
self.container.add_item(discord.ui.MediaGallery(discord.MediaGalleryItem(media=image_url)))
self.container.add_item(discord.ui.Separator())
self.container.add_item(discord.ui.TextDisplay(schedule_str))
self.container.add_item(discord.ui.Separator())
Expand Down
9 changes: 4 additions & 5 deletions docs/AFK.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ Pass a role name/mention to set it, or nothing to clear it.<br/>
Extended Arg Info

> ### role: Optional[discord.role.Role] = None
>
>
>
>
> 1. Lookup by ID.
> 2. Lookup by mention.
> 3. Lookup by name
>
>
>
>

### [p]afkset nickname

Expand Down Expand Up @@ -100,4 +100,3 @@ Extended Arg Info
> ```
> A number without decimal places.
> ```

1 change: 0 additions & 1 deletion docs/AutoPublisher.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,3 @@ This shows global stats across all servers in an interactive view.<br/>

- Usage: `[p]autopublisher stats`
- Restricted to: `BOT_OWNER`

41 changes: 20 additions & 21 deletions docs/Counting.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ Example: `[p]countingset roles ruinrole @Role 5m` to set a role for 5 minutes.<b
Extended Arg Info

> ### role: Optional[discord.role.Role] = None
>
>
>
>
> 1. Lookup by ID.
> 2. Lookup by mention.
> 3. Lookup by name
>
>
>
>
> ### duration: Optional[str] = None
> ```
> You will need a number to set duration for.
Expand All @@ -63,13 +63,13 @@ Only guild owners can set these roles. If no roles are provided, clears the list
Extended Arg Info

> ### *roles: discord.role.Role
>
>
>
>
> 1. Lookup by ID.
> 2. Lookup by mention.
> 3. Lookup by name
>
>
>
>

#### [p]countingset roles exclude

Expand All @@ -80,13 +80,13 @@ Set roles to exclude from receiving the ruin role.<br/>
Extended Arg Info

> ### *roles: discord.role.Role
>
>
>
>
> 1. Lookup by ID.
> 2. Lookup by mention.
> 3. Lookup by name
>
>
>
>

### [p]countingset misc

Expand Down Expand Up @@ -157,14 +157,14 @@ Set or clear the counting channel.<br/>
Extended Arg Info

> ### channel: Optional[discord.channel.TextChannel] = None
>
>
>
>
> 1. Lookup by ID.
> 2. Lookup by mention.
> 3. Lookup by channel URL.
> 4. Lookup by name
>
>
>
>

### [p]countingset messages

Expand Down Expand Up @@ -299,17 +299,17 @@ Show counting stats for a user.<br/>
Extended Arg Info

> ### user: Optional[discord.member.Member] = None
>
>
>
>
> 1. Lookup by ID.
> 2. Lookup by mention.
> 3. Lookup by username#discriminator (deprecated).
> 4. Lookup by username#0 (deprecated, only gets users that migrated from their discriminator).
> 5. Lookup by user name.
> 6. Lookup by global name.
> 7. Lookup by guild nickname.
>
>
>
>

### [p]counting leaderboard (Hybrid Command)

Expand All @@ -322,4 +322,3 @@ Please note that the leaderboard only includes users who have counted at least o
- Slash Usage: `/counting leaderboard`
- Aliases: `lb`
- Cooldown: `1 per 10.0 seconds`

7 changes: 3 additions & 4 deletions docs/Currency.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ Extended Arg Info

> ### from_currency: str
> - Autocomplete: False
>
>
> The currency to convert from (e.g., USD)
>
> ### to_currency: str
> - Autocomplete: False
>
>
> The currency to convert to (e.g., EUR, peso)
>
>

## [p]currencyset

Expand All @@ -37,4 +37,3 @@ Setup currency cog.<br/>
Explains how to get an ExchangeRate-API key.<br/>

- Usage: `[p]currencyset setup`

17 changes: 8 additions & 9 deletions docs/Earthquake.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ Set or clear the role to ping for earthquake alerts.<br/>
Extended Arg Info

> ### role: Optional[discord.role.Role]
>
>
>
>
> 1. Lookup by ID.
> 2. Lookup by mention.
> 3. Lookup by name
>
>
>
>

### [p]earthquakeset webhook

Expand Down Expand Up @@ -114,12 +114,11 @@ Set or clear the channel for earthquake alerts.<br/>
Extended Arg Info

> ### channel: Optional[discord.channel.TextChannel]
>
>
>
>
> 1. Lookup by ID.
> 2. Lookup by mention.
> 3. Lookup by channel URL.
> 4. Lookup by name
>
>

>
>
Loading
Loading