Add a command to set the bot description (#3340)

* description-command

* Cap the description length

* mmk
This commit is contained in:
Michael H
2020-01-13 10:12:31 -05:00
committed by GitHub
parent ab2e87a8fb
commit ef8b57a1d2
3 changed files with 31 additions and 3 deletions

View File

@@ -76,6 +76,7 @@ class RedBase(commands.GroupMixin, commands.bot.BotBase, RPCMixin): # pylint: d
help__verify_checks=True,
help__verify_exists=False,
help__tagline="",
description="Red V3",
invite_public=False,
invite_perm=0,
disabled_commands=[],
@@ -400,6 +401,7 @@ class RedBase(commands.GroupMixin, commands.bot.BotBase, RPCMixin): # pylint: d
This should only be run once, prior to connecting to discord.
"""
await self._maybe_update_config()
self.description = await self._config.description()
init_global_checks(self)
init_events(self, cli_flags)