update for removal of /name

This commit is contained in:
InspectorCaracal 2022-11-30 15:39:22 -07:00
parent e8d0754d7d
commit 049e40910b
3 changed files with 5 additions and 11 deletions

View file

@ -120,15 +120,9 @@ DISCORD_ENABLED = True
``` ```
Start or reload your game to apply the changed settings, then log in as an account Start or reload your game to apply the changed settings, then log in as an account
with at least `Developer` permissions and initialize the bot account on Evennia: with at least `Developer` permissions and initialize the bot account on Evennia with
the `discord2chan` command. You should receive a message that the bot was created, and
discord2chan/name <your bot name> that there are no active connections to Discord.
The name you assign it can be anything; it will show up in the `who` list for your
game and your game's channels, but is otherwise unused.
Lastly, confirm that it's fully enabled by entering `discord2chan` on its own.
You should receive a message that there are no active connections to Discord.
### Connecting an Evennia channel to a Discord channel ### Connecting an Evennia channel to a Discord channel

View file

@ -1965,7 +1965,7 @@ class CmdDiscord2Chan(COMMAND_DEFAULT_CLASS):
bot_class = class_from_module(settings.DISCORD_BOT_CLASS, fallback=bots.DiscordBot) bot_class = class_from_module(settings.DISCORD_BOT_CLASS, fallback=bots.DiscordBot)
discord_bot = create.create_account("DiscordBot", None, None, typeclass=bot_class) discord_bot = create.create_account("DiscordBot", None, None, typeclass=bot_class)
discord_bot.start() discord_bot.start()
self.msg("Created and initialized a new Discord relay bot.")
else: else:
discord_bot = discord_bot[0] discord_bot = discord_bot[0]

View file

@ -2011,7 +2011,7 @@ class TestDiscord(BaseEvenniaCommandTest):
self.cmddiscord.account_caller = False self.cmddiscord.account_caller = False
# create bot manually so it doesn't get started # create bot manually so it doesn't get started
self.discordbot = create.create_account( self.discordbot = create.create_account(
"DiscordTest", None, None, typeclass="evennia.accounts.bots.DiscordBot" "DiscordBot", None, None, typeclass="evennia.accounts.bots.DiscordBot"
) )
def tearDown(self): def tearDown(self):