1
Fork 0
mirror of https://github.com/RGBCube/minearchy-bot synced 2025-07-27 08:57:46 +00:00

Make stuff work on an ubuntu server

This commit is contained in:
RGBCube 2022-10-18 14:20:17 +03:00
parent 3791f0422e
commit c74047c442
5 changed files with 14 additions and 4 deletions

View file

@ -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`. 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`.

4
install Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
python3 -m pip install -U poetry
python3 -m poetry install --only main

2
lint
View file

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# run unimport # run unimport
unimport ./ --ignore-init --gitignore -r unimport ./ --ignore-init --gitignore -r

View file

@ -1,5 +1,5 @@
[tool.poetry] [tool.poetry]
name = "MinearchyBot" name = "minearchy-bot"
version = "1.0.0" version = "1.0.0"
description = "A simple bot for the Lands of Minearchy Discord server." description = "A simple bot for the Lands of Minearchy Discord server."
authors = [ "RGBCube", "The Lands of Minearchy team" ] authors = [ "RGBCube", "The Lands of Minearchy team" ]
@ -18,6 +18,9 @@ isort = "*"
unimport = "*" unimport = "*"
pyright = "*" pyright = "*"
[tool.poetry.scripts]
bot = "minearchy_bot.__main__:__main__"
[tool.black] [tool.black]
line-length = 100 line-length = 100
preview = true preview = true

3
start Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
python3 -m poetry run bot