New commands

See merge request stark-industries/jarvis/jarvis-bot!61
This commit is contained in:
Zeva Rose 2022-05-29 00:41:52 +00:00
commit 1696d10432
2 changed files with 23 additions and 1 deletions

View file

@ -374,6 +374,28 @@ class UtilCog(Extension):
embed = build_embed(title="Converted Time", description=f"`{string}`", fields=fields) embed = build_embed(title="Converted Time", description=f"`{string}`", fields=fields)
await ctx.send(embed=embed, ephemeral=private) await ctx.send(embed=embed, ephemeral=private)
@slash_command(name="support", description="Got issues?")
async def _support(self, ctx: InteractionContext) -> None:
await ctx.send(
f"""
Run into issues with {self.bot.user.mention}? Please report them here!
https://s.zevs.me/jarvis-support
We'll help as best we can with whatever issues you encounter.
"""
)
@slash_command(name="privacy_terms", description="View Privacy and Terms of User")
async def _privacy_terms(self, ctx: InteractionContext) -> None:
await ctx.send(
"""
View the privacy statement here: https://s.zevs.me/jarvis-privacy
View the terms of use here: https://s.zevs.me/jarvis-terms
"""
)
def setup(bot: Client) -> None: def setup(bot: Client) -> None:
"""Add UtilCog to JARVIS""" """Add UtilCog to JARVIS"""

View file

@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "jarvis" name = "jarvis"
version = "2.0.1" version = "2.0.2"
description = "J.A.R.V.I.S. admin bot" description = "J.A.R.V.I.S. admin bot"
authors = ["Zevaryx <zevaryx@gmail.com>"] authors = ["Zevaryx <zevaryx@gmail.com>"]