-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refs/heads/rewrite' into extensions-command
# Conflicts: # cogs/dev.py
- Loading branch information
Showing
31 changed files
with
1,423 additions
and
598 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: Ruff | ||
on: [ push, pull_request ] | ||
jobs: | ||
ruff: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: chartboost/ruff-action@v1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,4 +129,5 @@ dmypy.json | |
.pyre/ | ||
|
||
config.json | ||
config.toml | ||
config.toml | ||
.pdm-python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,31 @@ | ||
import discord | ||
from discord.ext import commands | ||
|
||
|
||
class ChannelOrder(commands.Cog): | ||
def __init__(self, bot: commands.Bot) -> None: | ||
self.bot = bot | ||
@commands.hybrid_group(aliases=['co']) | ||
|
||
@commands.hybrid_group(aliases=["co"]) | ||
async def channelorder(self, ctx: commands.Context): | ||
""" | ||
Commands for discord channel arrangement within categories. | ||
""" | ||
raise NotImplementedError('Command requires implementation and permission set-up.') | ||
raise NotImplementedError("Command requires implementation and permission set-up.") | ||
|
||
@channelorder.command() | ||
async def snapshot(self, ctx: commands.Context): | ||
""" | ||
Save the arrangement of channels in a category. | ||
""" | ||
raise NotImplementedError('Command requires implementation and permission set-up.') | ||
@channelorder.command(aliases=['r']) | ||
raise NotImplementedError("Command requires implementation and permission set-up.") | ||
|
||
@channelorder.command(aliases=["r"]) | ||
async def rollback(self, ctx: commands.Context): | ||
""" | ||
Revert the arrangement of channels in a category. | ||
""" | ||
raise NotImplementedError('Command requires implementation and permission set-up.') | ||
raise NotImplementedError("Command requires implementation and permission set-up.") | ||
|
||
|
||
async def setup(bot: commands.Bot): | ||
await bot.add_cog(ChannelOrder(bot)) | ||
await bot.add_cog(ChannelOrder(bot)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,24 @@ | ||
import discord | ||
from discord.ext import commands | ||
|
||
|
||
class Embeds(commands.Cog): | ||
def __init__(self, bot: commands.Bot) -> None: | ||
self.bot = bot | ||
|
||
@commands.hybrid_command() | ||
async def embed(self, ctx: commands.Context): | ||
""" | ||
Interactively construct a Discord embed. | ||
""" | ||
raise NotImplementedError('Command requires implementation and permission set-up.') | ||
raise NotImplementedError("Command requires implementation and permission set-up.") | ||
|
||
@commands.command() | ||
async def embedraw(self, ctx: commands.Context): | ||
""" | ||
Create a Discord embed via raw JSON input. | ||
""" | ||
raise NotImplementedError('Command requires implementation and permission set-up.') | ||
raise NotImplementedError("Command requires implementation and permission set-up.") | ||
|
||
|
||
async def setup(bot: commands.Bot): | ||
await bot.add_cog(Embeds(bot)) | ||
await bot.add_cog(Embeds(bot)) |
Oops, something went wrong.