This commit is contained in:
Zeva Rose 2021-07-04 19:54:28 -06:00
parent 994d0ea7ab
commit ca954f25e4

View file

@ -1,5 +1,6 @@
from discord.ext import commands
from discord_slash import cog_ext
from discord_slash import SlashContext, cog_ext
from discord_slash.utils.manage_commands import create_option
import jarvis
from jarvis import config, jarvis_self, logo
@ -53,6 +54,25 @@ class UtilCog(commands.Cog):
lo = logo.get_logo(self.config.logo)
await ctx.send(f"```\n{lo}\n```")
@cog_ext.cog_slash(
name="rcauto",
description="Automates robot camo letters",
guild_ids=[578757004059738142],
option=[
create_option(
name="text", description="Text to camo-ify", option_type=3
)
],
)
async def _rcauto(self, ctx: SlashContext, text: str):
text = ""
for letter in text:
if letter == " ":
text += " "
else:
text += f":rc{letter}:"
await ctx.send(text)
def setup(bot):
bot.add_cog(UtilCog(bot))