Bump version to 1.6.0
This commit is contained in:
parent
44d6b5675e
commit
fb7c49cf5c
3 changed files with 3 additions and 14 deletions
|
@ -44,7 +44,7 @@ jarvis = commands.Bot(
|
||||||
)
|
)
|
||||||
slash = SlashCommand(jarvis, sync_commands=True, sync_on_cog_reload=True)
|
slash = SlashCommand(jarvis, sync_commands=True, sync_on_cog_reload=True)
|
||||||
jarvis_self = Process()
|
jarvis_self = Process()
|
||||||
__version__ = "1.5.8"
|
__version__ = "1.6.0"
|
||||||
|
|
||||||
|
|
||||||
db = DBManager(get_config().mongo).mongo
|
db = DBManager(get_config().mongo).mongo
|
||||||
|
|
|
@ -7,8 +7,6 @@ from jarvis.db.types import Setting
|
||||||
from jarvis.utils import build_embed
|
from jarvis.utils import build_embed
|
||||||
from jarvis.utils.field import Field
|
from jarvis.utils.field import Field
|
||||||
|
|
||||||
guild_ids = [862402786116763668]
|
|
||||||
|
|
||||||
|
|
||||||
class RolegiverCog(commands.Cog):
|
class RolegiverCog(commands.Cog):
|
||||||
def __init__(self, bot):
|
def __init__(self, bot):
|
||||||
|
@ -18,7 +16,6 @@ class RolegiverCog(commands.Cog):
|
||||||
base="rolegiver",
|
base="rolegiver",
|
||||||
name="add",
|
name="add",
|
||||||
description="Add a role to rolegiver",
|
description="Add a role to rolegiver",
|
||||||
guild_ids=guild_ids,
|
|
||||||
options=[
|
options=[
|
||||||
create_option(
|
create_option(
|
||||||
name="role",
|
name="role",
|
||||||
|
@ -76,7 +73,6 @@ class RolegiverCog(commands.Cog):
|
||||||
base="rolegiver",
|
base="rolegiver",
|
||||||
name="remove",
|
name="remove",
|
||||||
description="Remove a role from rolegiver",
|
description="Remove a role from rolegiver",
|
||||||
guild_ids=guild_ids,
|
|
||||||
options=[
|
options=[
|
||||||
create_option(
|
create_option(
|
||||||
name="role",
|
name="role",
|
||||||
|
@ -133,7 +129,6 @@ class RolegiverCog(commands.Cog):
|
||||||
base="rolegiver",
|
base="rolegiver",
|
||||||
name="list",
|
name="list",
|
||||||
description="List roles rolegiver",
|
description="List roles rolegiver",
|
||||||
guild_ids=guild_ids,
|
|
||||||
)
|
)
|
||||||
async def _rolegiver_list(self, ctx: SlashContext):
|
async def _rolegiver_list(self, ctx: SlashContext):
|
||||||
setting = Setting.get(guild=ctx.guild.id, setting="rolegiver")
|
setting = Setting.get(guild=ctx.guild.id, setting="rolegiver")
|
||||||
|
@ -171,7 +166,6 @@ class RolegiverCog(commands.Cog):
|
||||||
base="role",
|
base="role",
|
||||||
name="get",
|
name="get",
|
||||||
description="Get a role from rolegiver",
|
description="Get a role from rolegiver",
|
||||||
guild_ids=guild_ids,
|
|
||||||
options=[
|
options=[
|
||||||
create_option(
|
create_option(
|
||||||
name="role",
|
name="role",
|
||||||
|
@ -229,7 +223,6 @@ class RolegiverCog(commands.Cog):
|
||||||
base="role",
|
base="role",
|
||||||
name="forfeit",
|
name="forfeit",
|
||||||
description="Have rolegiver take away role",
|
description="Have rolegiver take away role",
|
||||||
guild_ids=guild_ids,
|
|
||||||
options=[
|
options=[
|
||||||
create_option(
|
create_option(
|
||||||
name="role",
|
name="role",
|
||||||
|
|
|
@ -13,8 +13,6 @@ from jarvis.data.robotcamo import emotes, names
|
||||||
from jarvis.utils import build_embed, convert_bytesize, get_repo_hash
|
from jarvis.utils import build_embed, convert_bytesize, get_repo_hash
|
||||||
from jarvis.utils.field import Field
|
from jarvis.utils.field import Field
|
||||||
|
|
||||||
guild_ids = [862402786116763668]
|
|
||||||
|
|
||||||
|
|
||||||
class UtilCog(commands.Cog):
|
class UtilCog(commands.Cog):
|
||||||
"""
|
"""
|
||||||
|
@ -125,7 +123,6 @@ class UtilCog(commands.Cog):
|
||||||
@cog_ext.cog_slash(
|
@cog_ext.cog_slash(
|
||||||
name="roleinfo",
|
name="roleinfo",
|
||||||
description="Get role info",
|
description="Get role info",
|
||||||
guild_ids=guild_ids,
|
|
||||||
options=[
|
options=[
|
||||||
create_option(
|
create_option(
|
||||||
name="role",
|
name="role",
|
||||||
|
@ -179,7 +176,6 @@ class UtilCog(commands.Cog):
|
||||||
@cog_ext.cog_slash(
|
@cog_ext.cog_slash(
|
||||||
name="userinfo",
|
name="userinfo",
|
||||||
description="Get user info",
|
description="Get user info",
|
||||||
guild_ids=guild_ids,
|
|
||||||
options=[
|
options=[
|
||||||
create_option(
|
create_option(
|
||||||
name="user",
|
name="user",
|
||||||
|
@ -199,11 +195,11 @@ class UtilCog(commands.Cog):
|
||||||
fields = [
|
fields = [
|
||||||
Field(
|
Field(
|
||||||
name="Joined",
|
name="Joined",
|
||||||
value=user.joined_at.strftime("%a, %b %d, %Y %I:%M %p"),
|
value=user.joined_at.strftime("%a, %b %-d, %Y %-I:%M %p"),
|
||||||
),
|
),
|
||||||
Field(
|
Field(
|
||||||
name="Registered",
|
name="Registered",
|
||||||
value=user.created_at.strftime("%a, %b %d, %Y %I:%M %p"),
|
value=user.created_at.strftime("%a, %b %-d, %Y %-I:%M %p"),
|
||||||
),
|
),
|
||||||
Field(
|
Field(
|
||||||
name=f"Roles [{len(user_roles)}]",
|
name=f"Roles [{len(user_roles)}]",
|
||||||
|
|
Loading…
Add table
Reference in a new issue