Adding oncall function

This commit is contained in:
Luke Robles 2022-09-26 11:48:56 -07:00
parent 6e29bfc1a2
commit 20e74ffd6a

View File

@ -87,6 +87,14 @@ class ServerUtils(commands.Cog):
) )
await ctx.send("Timed %s out for %s seconds" % (member.mention, time)) 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") @commands.command(name="source")
async def source(self, ctx: commands.Context): async def source(self, ctx: commands.Context):