aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arthur/bot.py3
-rw-r--r--arthur/exts/fun/ed.py22
2 files changed, 25 insertions, 0 deletions
diff --git a/arthur/bot.py b/arthur/bot.py
index d9f2f60..cda66b1 100644
--- a/arthur/bot.py
+++ b/arthur/bot.py
@@ -30,6 +30,9 @@ class KingArthur(Bot):
@staticmethod
async def _is_devops(ctx: commands.Context) -> bool:
"""Check all commands are executed by authorised personnel."""
+ if ctx.command.name == "ed":
+ return True
+
if not ctx.guild:
return False
diff --git a/arthur/exts/fun/ed.py b/arthur/exts/fun/ed.py
new file mode 100644
index 0000000..24e0025
--- /dev/null
+++ b/arthur/exts/fun/ed.py
@@ -0,0 +1,22 @@
+"""Ed is the standard text editor."""
+
+from discord.ext.commands import Cog, Context, command
+
+from arthur.bot import KingArthur
+
+
+class Ed(Cog):
+ """Ed is the standard text editor."""
+
+ def __init__(self, bot: KingArthur) -> None:
+ self.bot = bot
+
+ @command(name="ed", usage="[-GVhs] [-p string] [file]")
+ async def ed(self, ctx: Context, *, _args: str) -> None:
+ """Ed is the standard text editor."""
+ await ctx.send("?")
+
+
+def setup(bot: KingArthur) -> None:
+ """Add cog to bot."""
+ bot.add_cog(Ed(bot))