mirror of
https://github.com/RGBCube/minearchy-bot
synced 2025-07-27 08:57:46 +00:00
Fix poetry run
This commit is contained in:
parent
fb8553c681
commit
6111101418
2 changed files with 10 additions and 8 deletions
|
@ -8,14 +8,16 @@ from uvloop import install as install_uvloop
|
|||
|
||||
from . import MinearchyBot
|
||||
|
||||
install_uvloop()
|
||||
|
||||
with (Path(__file__).parent.parent / "config.json").open() as f:
|
||||
config = parse_json(f)
|
||||
def main() -> None:
|
||||
install_uvloop()
|
||||
|
||||
for key in ("HIDE", "NO_UNDERSCORE"):
|
||||
env[f"JISHAKU_{key}"] = "True"
|
||||
with (Path(__file__).parent.parent / "config.json").open() as f:
|
||||
config = parse_json(f)
|
||||
|
||||
bot = MinearchyBot(token=config["BOT_TOKEN"], webhook_url=config["WEBHOOK_URL"])
|
||||
for key in ("HIDE", "NO_UNDERSCORE"):
|
||||
env[f"JISHAKU_{key}"] = "True"
|
||||
|
||||
bot.run()
|
||||
bot = MinearchyBot(token=config["BOT_TOKEN"], webhook_url=config["WEBHOOK_URL"])
|
||||
|
||||
bot.run()
|
||||
|
|
|
@ -19,7 +19,7 @@ unimport = "*"
|
|||
pyright = "*"
|
||||
|
||||
[tool.poetry.scripts]
|
||||
bot = "minearchy_bot.__main__:__main__"
|
||||
bot = "minearchy_bot.__main__:main"
|
||||
|
||||
[tool.black]
|
||||
line-length = 100
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue