/rcauto
This commit is contained in:
parent
994d0ea7ab
commit
ca954f25e4
1 changed files with 21 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
from discord.ext import commands
|
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
|
import jarvis
|
||||||
from jarvis import config, jarvis_self, logo
|
from jarvis import config, jarvis_self, logo
|
||||||
|
@ -53,6 +54,25 @@ class UtilCog(commands.Cog):
|
||||||
lo = logo.get_logo(self.config.logo)
|
lo = logo.get_logo(self.config.logo)
|
||||||
await ctx.send(f"```\n{lo}\n```")
|
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):
|
def setup(bot):
|
||||||
bot.add_cog(UtilCog(bot))
|
bot.add_cog(UtilCog(bot))
|
||||||
|
|
Loading…
Add table
Reference in a new issue