Skip to content

Commit

Permalink
chore: create basic structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Makcal committed Mar 10, 2024
1 parent 959099f commit 940aa3e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
File renamed without changes.
Empty file added src/bot/__init__.py
Empty file.
24 changes: 24 additions & 0 deletions src/bot/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import asyncio
import logging
import os

import dotenv
from aiogram import Bot, Dispatcher
from aiogram_dialog import setup_dialogs


dotenv.load_dotenv(".env")

bot = Bot(token=os.getenv("BOT_TOKEN"))
dp = Dispatcher()


async def main():
logging.basicConfig(level=logging.INFO)

setup_dialogs(dp)
await dp.start_polling(bot)


if __name__ == "__main__":
asyncio.run(main())

0 comments on commit 940aa3e

Please sign in to comment.