refactor and bug fixes.

This commit is contained in:
sudobh committed 2025-11-10 01:54:57 +05:30
1 parent 58908ee3d6
commit 15207fe11a
9 files changed
+1394 -294

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.
"""
git = bot.get_command("jsk git")
await ctx.invoke(git, argument=codeblock_converter("pull"))
restart = bot.get_command("restart")
await ctx.invoke(restart)
@commands.command()
@commands.guild_only()