fix: missed token part for joinme

This commit is contained in:
Terry Geng 2020-02-25 19:39:05 +08:00
parent 2a6d6f168d
commit 78b11d1fb5
2 changed files with 3 additions and 3 deletions

View File

@ -66,8 +66,8 @@ def send_multi_lines(bot, lines, text):
def cmd_joinme(bot, user, text, command, parameter):
channel_id = bot.mumble.users[text.actor]['channel_id']
bot.mumble.channels[channel_id].move_in()
bot.mumble.users.myself.move_in(
bot.mumble.users[text.actor]['channel_id'], token=parameter)
def cmd_user_ban(bot, user, text, command, parameter):

View File

@ -214,7 +214,7 @@ help = <h3>Commands</h3>
</ul>
<b>Other</b>
<ul>
<li> <b>!<u>j</u>oinme </b> - join your own channel </li>
<li> <b>!<u>j</u>oinme {token} </b> - join your own channel with {token}.</li>
</ul>
admin_help = <h3>Admin command</h3>