Skip to content

Commit

Permalink
fix: typo in python package name
Browse files Browse the repository at this point in the history
  • Loading branch information
2mal3 committed Jul 17, 2024
1 parent 40aed8a commit 6afa0c3
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
File renamed without changes.
4 changes: 4 additions & 0 deletions src/somnus/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from somnus.discord_provider import main

if __name__ == "__main__":
main()
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import discord
from discord.ext import commands

from somuns.environment import CONFIG, Config
from somuns.logger import log
from somuns.logic import start, stop, utils
from somnus.environment import CONFIG, Config
from somnus.logger import log
from somnus.logic import start, stop, utils

intents = discord.Intents.default()
intents.message_content = True
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/somuns/logger.py → src/somnus/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
_console_handler.setFormatter(_formatter)
log.addHandler(_console_handler)

_LOG_FILE_PATH = Path.cwd() / "somuns.log"
_LOG_FILE_PATH = Path.cwd() / "somnus.log"
open(_LOG_FILE_PATH, "w").close()
_file_handler = logging.FileHandler(_LOG_FILE_PATH)
_file_handler.setLevel(_LEVEL)
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions src/somuns/logic/start.py → src/somnus/logic/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
from ping3 import ping
from wakeonlan import send_magic_packet

from somuns.environment import Config, CONFIG
from somuns.logger import log
from somuns.logic.utils import ServerState, get_server_state, ssh_login, UserInputError
from somnus.environment import Config, CONFIG
from somnus.logger import log
from somnus.logic.utils import ServerState, get_server_state, ssh_login, UserInputError


async def start_server(config: Config = CONFIG):
Expand Down
6 changes: 3 additions & 3 deletions src/somuns/logic/stop.py → src/somnus/logic/stop.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from pexpect import pxssh

from somuns.environment import Config, CONFIG
from somuns.logger import log
from somuns.logic.utils import ServerState, get_server_state, ssh_login, UserInputError
from somnus.environment import Config, CONFIG
from somnus.logger import log
from somnus.logic.utils import ServerState, get_server_state, ssh_login, UserInputError


async def stop_server(config: Config = CONFIG):
Expand Down
4 changes: 2 additions & 2 deletions src/somuns/logic/utils.py → src/somnus/logic/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
from pexpect import pxssh
from ping3 import ping

from somuns.environment import Config
from somuns.logger import log
from somnus.environment import Config
from somnus.logger import log


class ServerState(Enum):
Expand Down
4 changes: 0 additions & 4 deletions src/somuns/__main__.py

This file was deleted.

0 comments on commit 6afa0c3

Please sign in to comment.