update owner cmds

This commit is contained in:
un1xx committed 2025-05-11 17:07:18 +05:30
1 parent ca40b33099
commit 29ab3110e5
3 files changed
+22 -23

No files matched your search

+15 -2
View File
@@ -199,8 +199,21 @@ class Main(commands.Cog):
async def shell(self, ctx: commands.Context, *, cmd: codeblock_converter = None):
if cmd is None:
return
jskgit = bot.get_command("jsk sh")
await ctx.invoke(jskgit, argument=cmd)
jsksh = bot.get_command("jsk sh")
await ctx.invoke(jsksh, argument=cmd)
@commands.is_owner()
@commands.command(name="pullr")
async def pullr(self, ctx: CustomCtx):
"""
git pull and restart the bot.
"""
jskgit = bot.get_command("git")
await ctx.invoke(jskgit, argument="pull")
restart = bot.get_command("restart")
await ctx.invoke(restart)
@commands.command()
@commands.guild_only()