mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[V3 CLI] CLI prefix args correctly display in the on_ready print (#1770)
This commit is contained in:
parent
a6965c4b5a
commit
741f3cbdcc
@ -96,7 +96,7 @@ def init_events(bot, cli_flags):
|
||||
else:
|
||||
invite_url = None
|
||||
|
||||
prefixes = await bot.db.prefix()
|
||||
prefixes = cli_flags.prefix or (await bot.db.prefix())
|
||||
lang = await bot.db.locale()
|
||||
red_version = __version__
|
||||
red_pkg = pkg_resources.get_distribution("Red-DiscordBot")
|
||||
@ -118,6 +118,7 @@ def init_events(bot, cli_flags):
|
||||
|
||||
INFO.append("{} cogs with {} commands".format(len(bot.cogs), len(bot.commands)))
|
||||
|
||||
try:
|
||||
async with aiohttp.ClientSession() as session:
|
||||
async with session.get("https://pypi.python.org/pypi/red-discordbot/json") as r:
|
||||
data = await r.json()
|
||||
@ -127,7 +128,6 @@ def init_events(bot, cli_flags):
|
||||
"but you're using {}".format(data["info"]["version"], red_version)
|
||||
)
|
||||
owner = discord.utils.get(bot.get_all_members(), id=bot.owner_id)
|
||||
try:
|
||||
await owner.send(
|
||||
"Your Red instance is out of date! {} is the current "
|
||||
"version, however you are using {}!".format(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user