Fix typo Snek -> Snake
This commit is contained in:
parent
88b9c63a92
commit
d4fd670cc9
8 changed files with 19 additions and 19 deletions
|
@ -1,7 +1,7 @@
|
||||||
"""J.A.R.V.I.S. MuteCog."""
|
"""J.A.R.V.I.S. MuteCog."""
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
from dis_snek import InteractionContext, Permissions, Scale, Snek
|
from dis_snek import InteractionContext, Permissions, Scale, Snake
|
||||||
from dis_snek.models.discord.embed import EmbedField
|
from dis_snek.models.discord.embed import EmbedField
|
||||||
from dis_snek.models.discord.user import Member
|
from dis_snek.models.discord.user import Member
|
||||||
from dis_snek.models.snek.application_commands import (
|
from dis_snek.models.snek.application_commands import (
|
||||||
|
@ -19,7 +19,7 @@ from jarvis.utils.permissions import admin_or_permissions
|
||||||
class MuteCog(Scale):
|
class MuteCog(Scale):
|
||||||
"""J.A.R.V.I.S. MuteCog."""
|
"""J.A.R.V.I.S. MuteCog."""
|
||||||
|
|
||||||
def __init__(self, bot: Snek):
|
def __init__(self, bot: Snake):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
|
|
||||||
@slash_command(name="mute", description="Mute a user")
|
@slash_command(name="mute", description="Mute a user")
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
"""J.A.R.V.I.S. PurgeCog."""
|
"""J.A.R.V.I.S. PurgeCog."""
|
||||||
from dis_snek import InteractionContext, Permissions, Scale, Snek
|
from dis_snek import InteractionContext, Permissions, Scale, Snake
|
||||||
from dis_snek.models.discord.channel import GuildText
|
from dis_snek.models.discord.channel import GuildText
|
||||||
from dis_snek.models.snek.application_commands import (
|
from dis_snek.models.snek.application_commands import (
|
||||||
OptionTypes,
|
OptionTypes,
|
||||||
|
@ -14,7 +14,7 @@ from jarvis.utils.permissions import admin_or_permissions
|
||||||
class PurgeCog(Scale):
|
class PurgeCog(Scale):
|
||||||
"""J.A.R.V.I.S. PurgeCog."""
|
"""J.A.R.V.I.S. PurgeCog."""
|
||||||
|
|
||||||
def __init__(self, bot: Snek):
|
def __init__(self, bot: Snake):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
|
|
||||||
@slash_command(name="purge", description="Purge messages from channel")
|
@slash_command(name="purge", description="Purge messages from channel")
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
"""J.A.R.V.I.S. RolepingCog."""
|
"""J.A.R.V.I.S. RolepingCog."""
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
|
||||||
from dis_snek import InteractionContext, Permissions, Snek
|
from dis_snek import InteractionContext, Permissions, Snake
|
||||||
from dis_snek.ext.paginators import Paginator
|
from dis_snek.ext.paginators import Paginator
|
||||||
from dis_snek.models.discord.embed import EmbedField
|
from dis_snek.models.discord.embed import EmbedField
|
||||||
from dis_snek.models.discord.role import Role
|
from dis_snek.models.discord.role import Role
|
||||||
|
@ -21,7 +21,7 @@ from jarvis.utils.permissions import admin_or_permissions
|
||||||
class RolepingCog(CacheCog):
|
class RolepingCog(CacheCog):
|
||||||
"""J.A.R.V.I.S. RolepingCog."""
|
"""J.A.R.V.I.S. RolepingCog."""
|
||||||
|
|
||||||
def __init__(self, bot: Snek):
|
def __init__(self, bot: Snake):
|
||||||
super().__init__(bot)
|
super().__init__(bot)
|
||||||
|
|
||||||
@slash_command(
|
@slash_command(
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
"""J.A.R.V.I.S. WarningCog."""
|
"""J.A.R.V.I.S. WarningCog."""
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
|
||||||
from dis_snek import InteractionContext, Permissions, Snek
|
from dis_snek import InteractionContext, Permissions, Snake
|
||||||
from dis_snek.ext.paginators import Paginator
|
from dis_snek.ext.paginators import Paginator
|
||||||
from dis_snek.models.discord.user import User
|
from dis_snek.models.discord.user import User
|
||||||
from dis_snek.models.snek.application_commands import (
|
from dis_snek.models.snek.application_commands import (
|
||||||
|
@ -21,7 +21,7 @@ from jarvis.utils.permissions import admin_or_permissions
|
||||||
class WarningCog(CacheCog):
|
class WarningCog(CacheCog):
|
||||||
"""J.A.R.V.I.S. WarningCog."""
|
"""J.A.R.V.I.S. WarningCog."""
|
||||||
|
|
||||||
def __init__(self, bot: Snek):
|
def __init__(self, bot: Snake):
|
||||||
super().__init__(bot)
|
super().__init__(bot)
|
||||||
|
|
||||||
@slash_command(name="warn", description="Warn a user")
|
@slash_command(name="warn", description="Warn a user")
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
import re
|
import re
|
||||||
from typing import Optional, Tuple
|
from typing import Optional, Tuple
|
||||||
|
|
||||||
from dis_snek import InteractionContext, Permissions, Scale, Snek
|
from dis_snek import InteractionContext, Permissions, Scale, Snake
|
||||||
from dis_snek.models.discord.channel import GuildText
|
from dis_snek.models.discord.channel import GuildText
|
||||||
from dis_snek.models.snek.application_commands import (
|
from dis_snek.models.snek.application_commands import (
|
||||||
OptionTypes,
|
OptionTypes,
|
||||||
|
@ -19,7 +19,7 @@ from jarvis.utils.permissions import admin_or_permissions
|
||||||
class AutoReactCog(Scale):
|
class AutoReactCog(Scale):
|
||||||
"""J.A.R.V.I.S. Autoreact Cog."""
|
"""J.A.R.V.I.S. Autoreact Cog."""
|
||||||
|
|
||||||
def __init__(self, bot: Snek):
|
def __init__(self, bot: Snake):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
self.custom_emote = re.compile(r"^<:\w+:(\d+)>$")
|
self.custom_emote = re.compile(r"^<:\w+:(\d+)>$")
|
||||||
|
|
||||||
|
@ -185,6 +185,6 @@ class AutoReactCog(Scale):
|
||||||
await ctx.send(message)
|
await ctx.send(message)
|
||||||
|
|
||||||
|
|
||||||
def setup(bot: Snek) -> None:
|
def setup(bot: Snake) -> None:
|
||||||
"""Add AutoReactCog to J.A.R.V.I.S."""
|
"""Add AutoReactCog to J.A.R.V.I.S."""
|
||||||
bot.add_cog(AutoReactCog(bot))
|
bot.add_cog(AutoReactCog(bot))
|
||||||
|
|
|
@ -3,7 +3,7 @@ import re
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
from dis_snek import InteractionContext, Snek
|
from dis_snek import InteractionContext, Snake
|
||||||
from dis_snek.ext.paginators import Paginator
|
from dis_snek.ext.paginators import Paginator
|
||||||
from dis_snek.models.discord.embed import EmbedField
|
from dis_snek.models.discord.embed import EmbedField
|
||||||
from dis_snek.models.discord.user import Member, User
|
from dis_snek.models.discord.user import Member, User
|
||||||
|
@ -27,7 +27,7 @@ invites = re.compile(
|
||||||
class CTCCog(CacheCog):
|
class CTCCog(CacheCog):
|
||||||
"""J.A.R.V.I.S. Complete the Code 2 Cog."""
|
"""J.A.R.V.I.S. Complete the Code 2 Cog."""
|
||||||
|
|
||||||
def __init__(self, bot: Snek):
|
def __init__(self, bot: Snake):
|
||||||
super().__init__(bot)
|
super().__init__(bot)
|
||||||
self._session = aiohttp.ClientSession()
|
self._session = aiohttp.ClientSession()
|
||||||
self.url = "https://completethecodetwo.cards/pw"
|
self.url = "https://completethecodetwo.cards/pw"
|
||||||
|
@ -151,6 +151,6 @@ class CTCCog(CacheCog):
|
||||||
await paginator.send(ctx)
|
await paginator.send(ctx)
|
||||||
|
|
||||||
|
|
||||||
def setup(bot: Snek) -> None:
|
def setup(bot: Snake) -> None:
|
||||||
"""Add CTCCog to J.A.R.V.I.S."""
|
"""Add CTCCog to J.A.R.V.I.S."""
|
||||||
bot.add_cog(CTCCog(bot))
|
bot.add_cog(CTCCog(bot))
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
import re
|
import re
|
||||||
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
from dis_snek import InteractionContext, Scale, Snek
|
from dis_snek import InteractionContext, Scale, Snake
|
||||||
from dis_snek.models.discord.embed import EmbedField
|
from dis_snek.models.discord.embed import EmbedField
|
||||||
from dis_snek.models.snek.application_commands import (
|
from dis_snek.models.snek.application_commands import (
|
||||||
OptionTypes,
|
OptionTypes,
|
||||||
|
@ -26,7 +26,7 @@ class DbrandCog(Scale):
|
||||||
Mostly support functions. Credit @cpixl for the shipping API
|
Mostly support functions. Credit @cpixl for the shipping API
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, bot: Snek):
|
def __init__(self, bot: Snake):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
self.base_url = "https://dbrand.com/"
|
self.base_url = "https://dbrand.com/"
|
||||||
self._session = aiohttp.ClientSession()
|
self._session = aiohttp.ClientSession()
|
||||||
|
@ -264,6 +264,6 @@ class DbrandCog(Scale):
|
||||||
await ctx.send(embed=embed)
|
await ctx.send(embed=embed)
|
||||||
|
|
||||||
|
|
||||||
def setup(bot: Snek) -> None:
|
def setup(bot: Snake) -> None:
|
||||||
"""Add dbrandcog to J.A.R.V.I.S."""
|
"""Add dbrandcog to J.A.R.V.I.S."""
|
||||||
bot.add_cog(DbrandCog(bot))
|
bot.add_cog(DbrandCog(bot))
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
"""Cog wrapper for command caching."""
|
"""Cog wrapper for command caching."""
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
|
||||||
from dis_snek import InteractionContext, Scale, Snek
|
from dis_snek import InteractionContext, Scale, Snake
|
||||||
from dis_snek.ext.tasks.task import Task
|
from dis_snek.ext.tasks.task import Task
|
||||||
from dis_snek.ext.tasks.triggers import IntervalTrigger
|
from dis_snek.ext.tasks.triggers import IntervalTrigger
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ from jarvis.utils import find
|
||||||
class CacheCog(Scale):
|
class CacheCog(Scale):
|
||||||
"""Cog wrapper for command caching."""
|
"""Cog wrapper for command caching."""
|
||||||
|
|
||||||
def __init__(self, bot: Snek):
|
def __init__(self, bot: Snake):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
self.cache = {}
|
self.cache = {}
|
||||||
self._expire_interaction.start()
|
self._expire_interaction.start()
|
||||||
|
|
Loading…
Add table
Reference in a new issue