diff --git a/jarvis/cogs/ctc2.py b/jarvis/cogs/ctc2.py index cb09539..2919fc4 100644 --- a/jarvis/cogs/ctc2.py +++ b/jarvis/cogs/ctc2.py @@ -20,7 +20,7 @@ from naff.models.naff.cooldowns import Buckets from jarvis.utils import build_embed -guild_ids = [862402786116763668] # [578757004059738142, 520021794380447745, 862402786116763668] +guild_ids = [578757004059738142, 520021794380447745, 862402786116763668] valid = re.compile(r"[\w\s\-\\/.!@#$%^*()+=<>,\u0080-\U000E0FFF]*") invites = re.compile( diff --git a/jarvis/cogs/dbrand.py b/jarvis/cogs/dbrand.py index a2685b2..c60fc43 100644 --- a/jarvis/cogs/dbrand.py +++ b/jarvis/cogs/dbrand.py @@ -18,7 +18,7 @@ from jarvis.config import JarvisConfig from jarvis.data.dbrand import shipping_lookup from jarvis.utils import build_embed -guild_ids = [862402786116763668] # [578757004059738142, 520021794380447745, 862402786116763668] +guild_ids = [578757004059738142, 520021794380447745, 862402786116763668] class DbrandCog(Extension): diff --git a/jarvis/cogs/dev.py b/jarvis/cogs/dev.py index 3b4386c..49091b0 100644 --- a/jarvis/cogs/dev.py +++ b/jarvis/cogs/dev.py @@ -275,6 +275,7 @@ class DevCog(Extension): @slash_command(name="cloc", description="Get JARVIS lines of code") @cooldown(bucket=Buckets.CHANNEL, rate=1, interval=30) async def _cloc(self, ctx: InteractionContext) -> None: + await ctx.defer() output = subprocess.check_output( # noqa: S603, S607 ["tokei", "-C", "--sort", "code"] ).decode("UTF-8") diff --git a/jarvis/cogs/util.py b/jarvis/cogs/util.py index fef16d6..edf79a1 100644 --- a/jarvis/cogs/util.py +++ b/jarvis/cogs/util.py @@ -83,7 +83,7 @@ class UtilCog(Extension): @slash_command(name="rchk", description="Robot Camo HK416") async def _rchk(self, ctx: InteractionContext) -> None: - await ctx.send(content=hk) + await ctx.send(content=hk, ephemeral=True) @slash_command( name="rcauto", @@ -111,7 +111,7 @@ class UtilCog(Extension): elif len(to_send) == 0: await ctx.send("No valid text found", ephemeral=True) else: - await ctx.send(to_send) + await ctx.send(to_send, ephemeral=True) @slash_command(name="avatar", description="Get a user avatar") @slash_option( diff --git a/jarvis/cogs/verify.py b/jarvis/cogs/verify.py index f6c798d..652a302 100644 --- a/jarvis/cogs/verify.py +++ b/jarvis/cogs/verify.py @@ -40,7 +40,6 @@ class VerifyCog(Extension): @slash_command(name="verify", description="Verify that you've read the rules") @cooldown(bucket=Buckets.USER, rate=1, interval=30) async def _verify(self, ctx: InteractionContext) -> None: - await ctx.defer() role = await Setting.find_one(q(guild=ctx.guild.id, setting="verified")) if not role: message = await ctx.send("This guild has not enabled verification", ephemeral=True) diff --git a/run.py b/run.py index 0b964f9..0dcb1ed 100755 --- a/run.py +++ b/run.py @@ -1,4 +1,8 @@ """Main run file for J.A.R.V.I.S.""" +import nest_asyncio + +nest_asyncio.apply() + import asyncio import nest_asyncio