Skip to content

Commit

Permalink
Merge pull request #4 from weddige/main
Browse files Browse the repository at this point in the history
Fix package structure
  • Loading branch information
v411e authored Oct 19, 2023
2 parents 836cf9e + 550277a commit a2843ce
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM python:3-alpine
WORKDIR /app

COPY requirements.txt /app/requirements.txt
COPY ./hype /app
COPY ./hype /app/hype

RUN pip install -r requirements.txt

Expand All @@ -14,4 +14,4 @@ RUN mkdir -p /app/secrets/

COPY ./config/* /app/config/

ENTRYPOINT ["python", "/app/main.py"]
ENTRYPOINT ["python", "-m", "hype"]
File renamed without changes.
7 changes: 7 additions & 0 deletions hype/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from .config import Config
from .hype import Hype

bot = Hype(Config())
bot.login()
bot.update_profile()
bot.start()
3 changes: 2 additions & 1 deletion hype/config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import logging
from typing import List

import yaml
import logging


class BotAccount:
Expand Down
8 changes: 5 additions & 3 deletions hype/hype.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import logging
import os.path
import time

import schedule
import logging
from mastodon import Mastodon
from config import Config
import os.path

from .config import Config


class Hype:
Expand Down
7 changes: 0 additions & 7 deletions hype/main.py

This file was deleted.

0 comments on commit a2843ce

Please sign in to comment.