Updated text in Pokecord

This commit is contained in:
Valerie 2025-02-20 16:42:46 -05:00
parent 214564410b
commit 185bff4395
4 changed files with 12 additions and 11 deletions

View file

@ -46,7 +46,7 @@ class Pokecord(
commands.Cog,
metaclass=CompositeMetaClass,
):
"""Pokecord adapted to use on Red."""
"""Ava's Pokemon adapted to use on Red."""
__version__ = "0.0.1-alpha-23"
__author__ = "flare"
@ -198,7 +198,7 @@ class Pokecord(
},
)
await self.config.migration.set(_MIGRATION_VERSION)
log.info("Pokecord Migration complete.")
log.info("Ava's Pokemon Migration complete.")
await self.update_guild_cache()
await self.update_spawn_chance()
@ -298,7 +298,7 @@ class Pokecord(
return await ctx.send(_("You've already claimed your starter pokemon!"))
if pokemon is None:
msg = _(
"Hey there trainer! Welcome to Pokecord. This is a ported plugin version of Pokecord adopted for use on Red.\n"
"Hey there trainer! Welcome to Ava's Pokemon.\n"
"In order to get catchin' you must pick one of the starter Pokemon as listed below.\n"
"**Generation 1**\nBulbasaur, Charmander and Squirtle\n"
"**Generation 2**\nChikorita, Cyndaquil, Totodile\n"
@ -308,6 +308,7 @@ class Pokecord(
"**Generation 6**\nChespin, Fennekin, Froakie\n"
"**Generation 7**\nRowlet, Litten, Popplio\n"
"**Generation 8**\nGrookey, Scorbunny, Sobble\n"
"**More to come in the future!\n"
)
msg += _("\nTo pick a pokemon, type {prefix}starter <pokemon>").format(
prefix=ctx.clean_prefix

View file

@ -4,7 +4,7 @@ from redbot.core import commands
@commands.group(name="poke")
async def poke(self, ctx: commands.Context):
"""
Pokecord commands
Ava's Pokemon commands
"""

View file

@ -43,11 +43,11 @@ class SettingsMixin(MixinMeta):
@poke.command()
@commands.guild_only()
async def locale(self, ctx, locale: str):
"""Set the Pokecord locale to use for yourself."""
"""Set the Ava's Pokemon locale to use for yourself."""
if locale.lower() not in LOCALES:
await ctx.send(
_(
"You've specified an invalid locale. Pokecord only supports English, Japanese, Chinese and French."
"You've specified an invalid locale. Ava's Pokemon only supports English"
)
)
return
@ -65,14 +65,14 @@ class SettingsMixin(MixinMeta):
@pokecordset.command(usage="type")
@commands.admin_or_permissions(manage_guild=True)
async def toggle(self, ctx, _type: bool = None):
"""Toggle pokecord on or off."""
"""Toggle Ava's Pokemon on or off."""
if _type is None:
_type = not await self.config.guild(ctx.guild).toggle()
await self.config.guild(ctx.guild).toggle.set(_type)
if _type:
await ctx.send(_("Pokécord has been toggled on!"))
await ctx.send(_("Ava's Pokemon has been toggled on!"))
return
await ctx.send(_("Pokécord has been toggled off!"))
await ctx.send(_("Ava's Pokemon has been toggled off!"))
await self.update_guild_cache()
@pokecordset.command(usage="type")

View file

@ -18,11 +18,11 @@ _ = Translator("Pokecord", __file__)
class TradeMixin(MixinMeta):
"""Pokecord Trading Commands"""
"""Ava's Pokemon Trading Commands"""
@poke.command(usage="<user> <pokemon ID>")
async def trade(self, ctx, user: discord.Member, *, id: int):
"""Pokecord Trading
"""Ava's Pokemon Trading
Currently a work in progress."""
async with ctx.typing():