diff --git a/docker-compose.yml b/docker-compose.yml index 6d256ed..c762786 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -28,25 +28,5 @@ services: source: ./db target: /data/db - vault: - image: "hashicorp/vault:latest" - container_name: "harmony-vault" - restart: on-failure - ports: - - "8200:8200" - environment: - VAULT_ADDR: 'https://0.0.0.0:8200' - ADMIN_USERNAME: 'admin' - ADMIN_PASSWORD: 'ThisIsYourAdminPassword' - cap_add: - - IPC_LOCK - volumes: - - type: bind - source: ./vault - target: /data - command: /data/init.sh - networks: - - harmony - networks: harmony: \ No newline at end of file diff --git a/main.py b/main.py index 35ec9ab..82e6053 100644 --- a/main.py +++ b/main.py @@ -4,10 +4,10 @@ import typing import discord import harmony_cogs -import harmony_ui.feedback from loguru import logger from discord.ext import commands +from harmony_ui.feedback import FeedbackItemView harmony_management_role_id = config.get_configuration_key( "discord.harmony_management_role_id", @@ -27,7 +27,7 @@ def __init__(self) -> typing.NoReturn: super().__init__(intents=intents, command_prefix="$") async def setup_hook(self) -> typing.NoReturn: - self.add_view(harmony_ui.feedback.FeedbackItemView()) + self.add_view(FeedbackItemView()) async def on_ready(self): logger.info(f'Logged in as {self.user} (ID: {self.user.id})') @@ -56,6 +56,7 @@ async def on_ready(self): self.is_starting_up = False + bot = HarmonyBot() @@ -192,4 +193,5 @@ async def manage_cogs( await ctx.send(output_message, ephemeral=True) -bot.run(config.get_configuration_key("discord.bot_token", required=True)) +if __name__ == "__main__": + bot.run(config.get_configuration_key("discord.bot_token", required=True))