Updated text in Pokecord
This commit is contained in:
parent
214564410b
commit
185bff4395
4 changed files with 12 additions and 11 deletions
|
@ -46,7 +46,7 @@ class Pokecord(
|
||||||
commands.Cog,
|
commands.Cog,
|
||||||
metaclass=CompositeMetaClass,
|
metaclass=CompositeMetaClass,
|
||||||
):
|
):
|
||||||
"""Pokecord adapted to use on Red."""
|
"""Ava's Pokemon adapted to use on Red."""
|
||||||
|
|
||||||
__version__ = "0.0.1-alpha-23"
|
__version__ = "0.0.1-alpha-23"
|
||||||
__author__ = "flare"
|
__author__ = "flare"
|
||||||
|
@ -198,7 +198,7 @@ class Pokecord(
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
await self.config.migration.set(_MIGRATION_VERSION)
|
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_guild_cache()
|
||||||
await self.update_spawn_chance()
|
await self.update_spawn_chance()
|
||||||
|
@ -298,7 +298,7 @@ class Pokecord(
|
||||||
return await ctx.send(_("You've already claimed your starter pokemon!"))
|
return await ctx.send(_("You've already claimed your starter pokemon!"))
|
||||||
if pokemon is None:
|
if pokemon is None:
|
||||||
msg = _(
|
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"
|
"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 1**\nBulbasaur, Charmander and Squirtle\n"
|
||||||
"**Generation 2**\nChikorita, Cyndaquil, Totodile\n"
|
"**Generation 2**\nChikorita, Cyndaquil, Totodile\n"
|
||||||
|
@ -308,6 +308,7 @@ class Pokecord(
|
||||||
"**Generation 6**\nChespin, Fennekin, Froakie\n"
|
"**Generation 6**\nChespin, Fennekin, Froakie\n"
|
||||||
"**Generation 7**\nRowlet, Litten, Popplio\n"
|
"**Generation 7**\nRowlet, Litten, Popplio\n"
|
||||||
"**Generation 8**\nGrookey, Scorbunny, Sobble\n"
|
"**Generation 8**\nGrookey, Scorbunny, Sobble\n"
|
||||||
|
"**More to come in the future!\n"
|
||||||
)
|
)
|
||||||
msg += _("\nTo pick a pokemon, type {prefix}starter <pokemon>").format(
|
msg += _("\nTo pick a pokemon, type {prefix}starter <pokemon>").format(
|
||||||
prefix=ctx.clean_prefix
|
prefix=ctx.clean_prefix
|
||||||
|
|
|
@ -4,7 +4,7 @@ from redbot.core import commands
|
||||||
@commands.group(name="poke")
|
@commands.group(name="poke")
|
||||||
async def poke(self, ctx: commands.Context):
|
async def poke(self, ctx: commands.Context):
|
||||||
"""
|
"""
|
||||||
Pokecord commands
|
Ava's Pokemon commands
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -43,11 +43,11 @@ class SettingsMixin(MixinMeta):
|
||||||
@poke.command()
|
@poke.command()
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
async def locale(self, ctx, locale: str):
|
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:
|
if locale.lower() not in LOCALES:
|
||||||
await ctx.send(
|
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
|
return
|
||||||
|
@ -65,14 +65,14 @@ class SettingsMixin(MixinMeta):
|
||||||
@pokecordset.command(usage="type")
|
@pokecordset.command(usage="type")
|
||||||
@commands.admin_or_permissions(manage_guild=True)
|
@commands.admin_or_permissions(manage_guild=True)
|
||||||
async def toggle(self, ctx, _type: bool = None):
|
async def toggle(self, ctx, _type: bool = None):
|
||||||
"""Toggle pokecord on or off."""
|
"""Toggle Ava's Pokemon on or off."""
|
||||||
if _type is None:
|
if _type is None:
|
||||||
_type = not await self.config.guild(ctx.guild).toggle()
|
_type = not await self.config.guild(ctx.guild).toggle()
|
||||||
await self.config.guild(ctx.guild).toggle.set(_type)
|
await self.config.guild(ctx.guild).toggle.set(_type)
|
||||||
if _type:
|
if _type:
|
||||||
await ctx.send(_("Pokécord has been toggled on!"))
|
await ctx.send(_("Ava's Pokemon has been toggled on!"))
|
||||||
return
|
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()
|
await self.update_guild_cache()
|
||||||
|
|
||||||
@pokecordset.command(usage="type")
|
@pokecordset.command(usage="type")
|
||||||
|
|
|
@ -18,11 +18,11 @@ _ = Translator("Pokecord", __file__)
|
||||||
|
|
||||||
|
|
||||||
class TradeMixin(MixinMeta):
|
class TradeMixin(MixinMeta):
|
||||||
"""Pokecord Trading Commands"""
|
"""Ava's Pokemon Trading Commands"""
|
||||||
|
|
||||||
@poke.command(usage="<user> <pokemon ID>")
|
@poke.command(usage="<user> <pokemon ID>")
|
||||||
async def trade(self, ctx, user: discord.Member, *, id: int):
|
async def trade(self, ctx, user: discord.Member, *, id: int):
|
||||||
"""Pokecord Trading
|
"""Ava's Pokemon Trading
|
||||||
|
|
||||||
Currently a work in progress."""
|
Currently a work in progress."""
|
||||||
async with ctx.typing():
|
async with ctx.typing():
|
||||||
|
|
Loading…
Add table
Reference in a new issue