Skip to content

Commit

Permalink
Move main to the top level folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Flagro committed Mar 6, 2024
1 parent 83adac3 commit c5380fd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
24 changes: 0 additions & 24 deletions bot/main.py

This file was deleted.

24 changes: 24 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -0,0 1,24 @@
import logging
from decouple import config
from bot.telegram_bot import TelegramEpicFishingBot


def main():
logging.basicConfig(
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
level=logging.INFO,
)

bot = TelegramEpicFishingBot(
telegram_token=config("TELEGRAM_TOKEN"),
mongodb_url="mongodb://{}:{}".format(
config("MONGODB_HOST"), config("MONGODB_PORT")
),
items_file_path="./data/sea_items.json",
)

bot.run()


if __name__ == "__main__":
main()

0 comments on commit c5380fd

Please sign in to comment.