diff --git a/README.md b/README.md index 90a1fb2..1251367 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,6 @@ This is a simple bot made for the [Minearchy Discord](https://discord.gg/2n6T78J 2: Edit the `config.example.json` to your liking and rename it to `config.json`. -3: Install dependencies using `pip install -U poetry && poetry install --only main`. +3: Install dependencies using `./install`. -4: Run `python -m minearchy_bot`. +4: Run `./start`. diff --git a/install b/install new file mode 100755 index 0000000..b9c5394 --- /dev/null +++ b/install @@ -0,0 +1,4 @@ +#!/bin/bash + +python3 -m pip install -U poetry +python3 -m poetry install --only main diff --git a/lint b/lint index d61e11f..966a711 100755 --- a/lint +++ b/lint @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # run unimport unimport ./ --ignore-init --gitignore -r diff --git a/pyproject.toml b/pyproject.toml index d9fd5b4..19b790b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [tool.poetry] -name = "MinearchyBot" +name = "minearchy-bot" version = "1.0.0" description = "A simple bot for the Lands of Minearchy Discord server." authors = [ "RGBCube", "The Lands of Minearchy team" ] @@ -18,6 +18,9 @@ isort = "*" unimport = "*" pyright = "*" +[tool.poetry.scripts] +bot = "minearchy_bot.__main__:__main__" + [tool.black] line-length = 100 preview = true diff --git a/start b/start new file mode 100755 index 0000000..7cb019d --- /dev/null +++ b/start @@ -0,0 +1,3 @@ +#!/bin/bash + +python3 -m poetry run bot