Fix typo Snek -> Snake

This commit is contained in:
Zeva Rose 2022-02-03 05:31:42 -07:00
parent 88b9c63a92
commit d4fd670cc9
8 changed files with 19 additions and 19 deletions

View file

@ -1,7 +1,7 @@
"""J.A.R.V.I.S. MuteCog."""
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.user import Member
from dis_snek.models.snek.application_commands import (
@ -19,7 +19,7 @@ from jarvis.utils.permissions import admin_or_permissions
class MuteCog(Scale):
"""J.A.R.V.I.S. MuteCog."""
def __init__(self, bot: Snek):
def __init__(self, bot: Snake):
self.bot = bot
@slash_command(name="mute", description="Mute a user")

View file

@ -1,5 +1,5 @@
"""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.snek.application_commands import (
OptionTypes,
@ -14,7 +14,7 @@ from jarvis.utils.permissions import admin_or_permissions
class PurgeCog(Scale):
"""J.A.R.V.I.S. PurgeCog."""
def __init__(self, bot: Snek):
def __init__(self, bot: Snake):
self.bot = bot
@slash_command(name="purge", description="Purge messages from channel")

View file

@ -1,7 +1,7 @@
"""J.A.R.V.I.S. RolepingCog."""
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.models.discord.embed import EmbedField
from dis_snek.models.discord.role import Role
@ -21,7 +21,7 @@ from jarvis.utils.permissions import admin_or_permissions
class RolepingCog(CacheCog):
"""J.A.R.V.I.S. RolepingCog."""
def __init__(self, bot: Snek):
def __init__(self, bot: Snake):
super().__init__(bot)
@slash_command(

View file

@ -1,7 +1,7 @@
"""J.A.R.V.I.S. WarningCog."""
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.models.discord.user import User
from dis_snek.models.snek.application_commands import (
@ -21,7 +21,7 @@ from jarvis.utils.permissions import admin_or_permissions
class WarningCog(CacheCog):
"""J.A.R.V.I.S. WarningCog."""
def __init__(self, bot: Snek):
def __init__(self, bot: Snake):
super().__init__(bot)
@slash_command(name="warn", description="Warn a user")

View file

@ -2,7 +2,7 @@
import re
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.snek.application_commands import (
OptionTypes,
@ -19,7 +19,7 @@ from jarvis.utils.permissions import admin_or_permissions
class AutoReactCog(Scale):
"""J.A.R.V.I.S. Autoreact Cog."""
def __init__(self, bot: Snek):
def __init__(self, bot: Snake):
self.bot = bot
self.custom_emote = re.compile(r"^<:\w+:(\d+)>$")
@ -185,6 +185,6 @@ class AutoReactCog(Scale):
await ctx.send(message)
def setup(bot: Snek) -> None:
def setup(bot: Snake) -> None:
"""Add AutoReactCog to J.A.R.V.I.S."""
bot.add_cog(AutoReactCog(bot))

View file

@ -3,7 +3,7 @@ import re
from datetime import datetime, timedelta
import aiohttp
from dis_snek import InteractionContext, Snek
from dis_snek import InteractionContext, Snake
from dis_snek.ext.paginators import Paginator
from dis_snek.models.discord.embed import EmbedField
from dis_snek.models.discord.user import Member, User
@ -27,7 +27,7 @@ invites = re.compile(
class CTCCog(CacheCog):
"""J.A.R.V.I.S. Complete the Code 2 Cog."""
def __init__(self, bot: Snek):
def __init__(self, bot: Snake):
super().__init__(bot)
self._session = aiohttp.ClientSession()
self.url = "https://completethecodetwo.cards/pw"
@ -151,6 +151,6 @@ class CTCCog(CacheCog):
await paginator.send(ctx)
def setup(bot: Snek) -> None:
def setup(bot: Snake) -> None:
"""Add CTCCog to J.A.R.V.I.S."""
bot.add_cog(CTCCog(bot))

View file

@ -2,7 +2,7 @@
import re
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.snek.application_commands import (
OptionTypes,
@ -26,7 +26,7 @@ class DbrandCog(Scale):
Mostly support functions. Credit @cpixl for the shipping API
"""
def __init__(self, bot: Snek):
def __init__(self, bot: Snake):
self.bot = bot
self.base_url = "https://dbrand.com/"
self._session = aiohttp.ClientSession()
@ -264,6 +264,6 @@ class DbrandCog(Scale):
await ctx.send(embed=embed)
def setup(bot: Snek) -> None:
def setup(bot: Snake) -> None:
"""Add dbrandcog to J.A.R.V.I.S."""
bot.add_cog(DbrandCog(bot))

View file

@ -1,7 +1,7 @@
"""Cog wrapper for command caching."""
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.triggers import IntervalTrigger
@ -11,7 +11,7 @@ from jarvis.utils import find
class CacheCog(Scale):
"""Cog wrapper for command caching."""
def __init__(self, bot: Snek):
def __init__(self, bot: Snake):
self.bot = bot
self.cache = {}
self._expire_interaction.start()