mcb-dev / mCodingBot

The Discord bot for the mCoding Discord server.
https://mcoding.io/discord
MIT License
12 stars 4 forks source link

gh-73: Add the main script to pyproject.toml #77

Closed qexat closed 1 year ago

qexat commented 1 year ago

Closes issue #73

Typing the following line now directly runs the bot:

poetry run bot

For technical reasons, I had to move mcodingbot/__main__.py main code to a function, and I believe it's better as it is in this commit.

Lunarmagpie commented 1 year ago

I think it should be poetry run bot (imo using the name of the bot in the code is a terrible mistake)

qexat commented 1 year ago

Do I really have to type a function that takes no args and returns nothing...

qexat commented 1 year ago

I think it should be poetry run bot (imo using the name of the bot in the code is a terrible mistake)

I just copy-pasted, I understand your statement and will apply as I fix this stupid typechecking issue

qexat commented 1 year ago

mypy still fails typechecking when I run it when nox locally nevermind

qexat commented 1 year ago

@Lunarmagpie it passes the checks now

qexat commented 1 year ago

@MithicSpirit @CircuitSacul @Endercheif

MithicSpirit commented 1 year ago

lgtm

qexat commented 1 year ago

so we are waiting for endercheif?