Update pyproject.toml
This commit is contained in:
@ -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}")
|
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.basicConfig(level=logging.getLevelName(log_level))
|
||||||
logging.info(
|
logging.info(
|
||||||
f"\nsqlite_location = {sqlite_location}\n"
|
f"\nsqlite_location = {sqlite_location}\n"
|
||||||
@ -886,3 +887,7 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
scheduler.start()
|
scheduler.start()
|
||||||
bot.run(bot_token)
|
bot.run(bot_token)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
start()
|
||||||
|
@ -1,8 +1,24 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "discord-reminder-bot"
|
name = "discord-reminder-bot"
|
||||||
version = "0.1.0"
|
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>"]
|
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]
|
[tool.poetry.dependencies]
|
||||||
python = "^3.9"
|
python = "^3.9"
|
||||||
@ -24,3 +40,18 @@ pydocstyle = "^6.1.1"
|
|||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry-core>=1.0.0"]
|
requires = ["poetry-core>=1.0.0"]
|
||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
|
||||||
|
[tool.black]
|
||||||
|
line-length = 119
|
||||||
|
exclude = '''
|
||||||
|
/(
|
||||||
|
\.git
|
||||||
|
| \.hg
|
||||||
|
| \.mypy_cache
|
||||||
|
| \.tox
|
||||||
|
| \.venv
|
||||||
|
| build
|
||||||
|
| dist
|
||||||
|
| migrations
|
||||||
|
)/
|
||||||
|
'''
|
||||||
|
Reference in New Issue
Block a user