Update pyproject.toml

This commit is contained in:
2021-07-27 23:19:38 +02:00
parent d9c02b3cbf
commit cc546f51ec
2 changed files with 39 additions and 3 deletions

View File

@ -875,7 +875,8 @@ async def send_to_discord(channel_id: int, message: str, author_id: int):
await channel.send(f"<@{author_id}>\n{message}")
if __name__ == "__main__":
def start():
"""Start scheduler and log in to Discord."""
logging.basicConfig(level=logging.getLevelName(log_level))
logging.info(
f"\nsqlite_location = {sqlite_location}\n"
@ -886,3 +887,7 @@ if __name__ == "__main__":
scheduler.start()
bot.run(bot_token)
if __name__ == "__main__":
start()

View File

@ -1,8 +1,24 @@
[tool.poetry]
name = "discord-reminder-bot"
version = "0.1.0"
description = ""
description = "Discord bot that allows you to set date, cron and interval reminders."
authors = ["Joakim Hellsén <tlovinator@gmail.com>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/TheLovinator1/discord-reminder-bot"
repository = "https://github.com/TheLovinator1/discord-reminder-bot"
keywords = [
"bot",
"discord",
"discord-reminder-bot",
"discord-py-slash-command",
]
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/TheLovinator1/discord-reminder-bot/issues"
[tool.poetry.scripts]
bot = "discord_reminder_bot.main:start"
[tool.poetry.dependencies]
python = "^3.9"
@ -24,3 +40,18 @@ pydocstyle = "^6.1.1"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 119
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
| migrations
)/
'''