From 20e74ffd6a679bddffead5d66ce3e9d92c087c97 Mon Sep 17 00:00:00 2001 From: Luke Robles <98352913+lrobles-iterable@users.noreply.github.com> Date: Mon, 26 Sep 2022 11:48:56 -0700 Subject: [PATCH] Adding oncall function --- app/cogs/server_utils.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/cogs/server_utils.py b/app/cogs/server_utils.py index d21492b8..ab79eeae 100644 --- a/app/cogs/server_utils.py +++ b/app/cogs/server_utils.py @@ -87,6 +87,14 @@ class ServerUtils(commands.Cog): ) await ctx.send("Timed %s out for %s seconds" % (member.mention, time)) + @commands.command(name="oncall") + async def oncall(self, ctx: commands.Context): + + await ctx.invoke( + self.bot.get_command("timeout"), member=ctx.message.author, time="10s" + ) + await ctx.reply("No u") + @commands.command(name="source") async def source(self, ctx: commands.Context):