aboutsummaryrefslogtreecommitdiffstats
path: root/arthur/exts/fun/ed.py
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2021-07-18 21:01:17 +0100
committerGravatar Joe Banks <[email protected]>2021-07-18 21:01:17 +0100
commitd1290aceacb0b9402798dcd09affd4a7a1514fb3 (patch)
tree02a808b778ad854f8d62367f196986149c39bc79 /arthur/exts/fun/ed.py
parentfix: fix redeploy confirmation timeout (diff)
feat: add ed command
Diffstat (limited to 'arthur/exts/fun/ed.py')
-rw-r--r--arthur/exts/fun/ed.py22
1 files changed, 22 insertions, 0 deletions
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))