diff --git a/Pipfile b/Pipfile index e317bcb..52f422b 100644 --- a/Pipfile +++ b/Pipfile @@ -9,7 +9,7 @@ click = "*" aiopg = "*" alembic = "*" asyncio-extras = "*" -abot = "==0.0.1a1.dev16" +abot = "==0.0.1a1.post0.dev23" [dev-packages] pylint = "*" diff --git a/Pipfile.lock b/Pipfile.lock index 6658f45..e01fff6 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -16,11 +16,11 @@ "default": { "abot": { "hashes": [ - "sha256:937ebd527b054143aa57f608cf24eda259623b87b0d22c888cb492dbb09f5b6c", - "sha256:faa54e5f1576807884311e5edd7ea3b6c1aac945efd0a103f36ec8ba5feb1511" + "sha256:606e403004db879b2ce676e04eb499e871af5f98909ab9e8b8186f20cd1c51f7", + "sha256:fb73dd52603ae307b24a3083e6c23a37322ce09d8c3f0e3461327a23063ed89d" ], "index": "pypi", - "version": "==0.0.1a1.dev16" + "version": "==0.0.1a1.post0.dev23" }, "aiohttp": { "hashes": [ diff --git a/mosbot/command.py b/mosbot/command.py index 4522406..8ae5784 100644 --- a/mosbot/command.py +++ b/mosbot/command.py @@ -91,13 +91,14 @@ def test(): @botcli.command() @click.option('--debug/--no-debug', '-d/ ', default=False) -def run(debug): +@click.option('--room', '-r', nargs=1, default='master-of-soundtrack') +def run(debug, room): """Run the bot, this is the main command that is usually run in the server""" check_alembic_in_latest_version() setup_logging(debug) # Setup bot = Bot() - dubtrack_backend = DubtrackBotBackend() + dubtrack_backend = DubtrackBotBackend(room=room) dubtrack_backend.configure(username=mos_config.DUBTRACK_USERNAME, password=mos_config.DUBTRACK_PASSWORD) bot.attach_backend(backend=dubtrack_backend) # bot.attach_command_group(botcmd) #: Disabled until permissions are implemented diff --git a/setup.py b/setup.py index e94f504..2db43af 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ ] }, install_requires=[ - 'abot==0.0.1a1.dev16', + 'abot==0.0.1a1.post0.dev23', 'aiopg', 'alembic', 'asyncio-extras', diff --git a/tests/test_command.py b/tests/test_command.py index 8dc5326..e1dabd8 100644 --- a/tests/test_command.py +++ b/tests/test_command.py @@ -178,7 +178,7 @@ def test_run( bot_mock.assert_called_once_with() bot_object = bot_mock.return_value - dubtrackbotbackend_mock.assert_called_once_with() + dubtrackbotbackend_mock.assert_called_once_with(room='master-of-soundtrack') dubtrack_backend_object = dubtrackbotbackend_mock.return_value dubtrack_backend_object.configure.assert_called_once_with( username=config.DUBTRACK_USERNAME,